Markdown Badges for GitHub: The Ultimate Reference
Badges are the small visual chips at the top of a README that instantly communicate a project's health, license, version, and build status. They're powered by shields.io — a service that generates SVG badges on the fly.
Basic Badge Syntax
Every badge is just a markdown image with a URL:
markdown
For example:
markdown


The Most Useful Badges
Build & CI Status
markdown

Package Version
markdown

License
markdown
Language & Framework
markdown


Stars & Forks
markdown

Badge Styles
Shields.io supports 5 styles via the ?style= parameter:
| Style | Parameter |
|---|---|
| flat (default) | ?style=flat |
| flat-square | ?style=flat-square |
| plastic | ?style=plastic |
| for-the-badge | ?style=for-the-badge |
| social | ?style=social |
for-the-badge is popular for visually rich READMEs:
markdown
Adding Logos
Add any Simple Icons logo with &logo=name:
markdown


Color Reference
Named colors: brightgreen, green, yellowgreen, yellow, orange, red, blue, lightgrey
Or use any hex: ?color=ff69b4
Linking Badges
Wrap the image in a link to make it clickable:
markdown[](https://www.npmjs.com/package/my-package)
[](https://github.com/user/repo/stargazers)
Recommended Badge Stack
markdown[](https://github.com/user/repo/actions)
[](https://www.npmjs.com/package/package-name)
[](https://opensource.org/licenses/MIT)
[](https://codecov.io/gh/user/repo)
Best Practices
- Less is more — 3–6 badges is the sweet spot
- Put badges above the fold — first lines of the README, before prose
- Use dynamic badges — pull live data where possible
- Keep a consistent style — pick one style and use it throughout
- Link every badge to its relevant page
Ready to build your badge stack? Use MarkGenie's editor to draft and preview your README badges instantly.