How to create a GitHub profile README

A profile README is the block of text and images at the top of your GitHub profile page. GitHub builds it from one specific repository, so setting it up is a matter of creating that repository and writing a README in it.

What GitHub needs

GitHub shows a README on your profile when all four of these hold:

RequirementExample for the username octocat
A repository named exactly like your usernameoctocat/octocat
The repository is publicVisibility: Public
A file named README.md in its rootoctocat/octocat/README.md
The file is not emptyAny text at all

Create it in five steps

1. Open github.com/new.
2. Under Repository name, type your username exactly. GitHub confirms with a note that this is a special repository.
3. Select Public.
4. Turn on Add a README file.
5. Click Create repository, then Edit README.

Save any text and your profile page shows it. The pre-filled template is fine to keep, replace, or delete.

If you made a public repository with your username before July 2020, GitHub does not show it automatically. Open the repository and click Share to profile.

Add a stats card

Paste this line into the README, replace the username in both places, and commit:

[![GitHub stats](https://gh-stats.com/api/YOUR_USERNAME)](https://gh-stats.com)

It renders one card with a score out of 100, your contribution timeline, top collaborators, language breakdown and commit streaks, and it updates on its own. The first request for a new username queues a build, so give it a minute.

A gh-stats card: profile score, impact timeline, collaborators, languages, streaks and achievements.
A stats card in a profile README, cropped.
Preview the card for your username

Want only one part? The top languages card works the same way. Already using github-readme-stats? See the migration guide.

Common questions

I created the repository but my profile shows nothing. Check the four requirements above. The usual cause is a private repository or a name that does not match the username exactly.

Can I edit it later? Yes. Every commit to that README.md updates your profile page.

Does the card need a token or an account? No. It reads public GitHub activity only, and there is nothing to sign up for.