README Badge Generator

Shields.io-style badges for GitHub README files

Ad placeholder (leaderboard)

Badges at the top of a README communicate project health at a glance — build passing, MIT licensed, version 2.1.0. This generator builds the shields.io static-badge URL for you and wraps it in ready-to-paste Markdown or HTML, handling the tricky character escaping that trips people up.

How it works

Shields.io exposes a static badge at a predictable URL:

https://img.shields.io/badge/<label>-<message>-<color>

The single dash between the three parts is a separator, so the label and message themselves have to escape any literal dashes by doubling them (- becomes --) and represent spaces with underscores (_). Color can be a named value such as brightgreen or a hex code like 4c1. An optional ?style= query selects the visual style. The Markdown wrapper is ![alt](url); the HTML wrapper is an <img> tag.

Example and tips

A badge labeled build with message passing in brightgreen produces https://img.shields.io/badge/build-passing-brightgreen. If your message is v2.1.0 stable, the space becomes an underscore so it renders correctly. Keep badges to three or four — coverage, build, license, and version are the most useful — and place them on a single line directly under the project title.

Ad placeholder (rectangle)