README Badge Generator

Build a row of shields-style badges, pick colours and styles, add a small logo and link, and download the SVG files plus the snippet for your README.

S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho

…

Com es fa

  1. 1
    Add badges

    Tap presets such as Build passing, Version or Licence MIT, or add a blank badge.

  2. 2
    Edit the selected badge

    Change the label, message, colours and style, and add a link or alt text.

  3. 3
    Add a logo if you like

    Open a small SVG or PNG to embed it at the left of the badge.

  4. 4
    Arrange the row

    Move badges left or right, duplicate or delete them, and apply one style to all.

  5. 5
    Choose the snippet

    Set the folder for the SVG files and pick Markdown, HTML or reStructuredText.

  6. 6
    Download and commit

    Download the ZIP, put the SVG files in your repository and paste the snippet into the README.

Sobre aquesta eina

Badges at the top of a README tell visitors in one glance whether the build passes, which version is current, what the licence is and how well the code is tested. Most projects link them from a badge service, which is convenient for live data but means every page view of your README asks an outside server for an image, and the badge breaks if that service is slow, rate-limited or blocked on a company network. For badges whose value only changes at release time, a committed SVG file is simpler and always loads. This generator draws shields-style badges right here in your browser and gives you the SVG files. Each badge has a label on the left and a message on the right, a colour for each half (hex values or the familiar names such as brightgreen, yellow, orange, red, blue and grey), one of four styles (flat, flat square, plastic and the tall for-the-badge), an optional small logo from your own SVG or PNG file and an optional link. Text width is measured with the same Verdana metrics badge services use, so the proportions look right, and text colour flips to dark on light backgrounds automatically. Presets give you build, version, licence, coverage, PRs welcome, docs and more in one tap. Coverage badges can pick their colour from the percentage. The snippet box writes Markdown, HTML or reStructuredText for the whole set, pointing at your chosen folder or, if you prefer, at equivalent shields.io URLs.

Local SVG or hosted badge?

Use a local SVG for facts that change only when you release: licence, version, supported runtime, made with. Use a hosted dynamic badge for numbers that change on every commit, such as CI status pulled from your pipeline, unless your CI regenerates the SVG. The switch Link to shields.io writes the matching shields.io URL for each badge so you can mix both approaches.

Accessibility and file details

Every SVG has role img, an aria-label and a title, so screen readers read build: passing rather than nothing. Alt text in the Markdown defaults to the same words and can be changed. Logos are embedded inside the SVG as data, so a badge stays a single file with no outside requests.

Limits

This tool does not fetch live data from GitHub, npm, PyPI or your CI service, so it cannot show real download counts or build results by itself: type the value, or regenerate the badge in your pipeline. It does not include brand logos; add your own logo file if you have the right to use it. Fonts in SVG fall back to similar sans-serif faces on systems without Verdana, and the textLength attribute keeps the width correct.

Exemple resolt

A library README needs four badges: build passing (brightgreen), version 2.3.1 (blue), license MIT (blue) and coverage 87%. With auto colour on, the coverage badge turns yellowgreen because 87 is between 75 and 90. In the flat style the build badge is 88.5 pixels wide by 20 high. With the folder .github/badges/, the Markdown snippet is ![build: passing](.github/badges/build-passing.svg) followed by the other three, and the ZIP holds four SVG files plus badges.md.

En resum

Preguntes freqüents

Will local SVG badges show on GitHub?

Yes. Commit the SVG files to your repository and reference them with a relative path in the README. GitHub serves them through its image proxy like any other image. They do not change by themselves, so update the message here and commit a new file when the value changes.

What colours can I use?

Any hex colour, with or without the #, in 3 or 6 digits, or a named colour: brightgreen, green, yellowgreen, yellow, orange, red, blue, grey, lightgrey and the semantic names success, important, critical, informational and inactive. The label half defaults to grey (#555).

How does the coverage colour work?

When a badge's label is coverage and its message is a percentage, the colour follows the usual scale: 95 percent and over brightgreen, 90 green, 75 yellowgreen, 60 yellow, 40 orange and below that red. Turn the option off to choose your own colour.

Can I add a logo to a badge?

Yes. Choose a small SVG or PNG file; it is shrunk and embedded inside the badge at 14 by 14 pixels on the left of the label. Use a white or single-colour logo for best contrast. Only use logos you are allowed to use.

What is the difference between the styles?

Flat has rounded corners and a soft gradient; flat square has square corners and no gradient; plastic is slightly shorter with a glossy gradient; for-the-badge is 28 pixels tall with bold capital letters and wider spacing. Use Use this style for all to keep a row consistent.

Can I link a badge to a page?

Yes. Enter a link and the Markdown becomes a linked image, such as a build badge that opens your CI runs or a licence badge that opens the LICENSE file. The HTML and reStructuredText snippets include the link too.

Totalment gratisSense cost, sense registre
Els fitxers es mantenen privatsTot funciona al teu navegador
Fàcil en el teu idiomaDisponible en molts idiomes