PrettyGit
Get started

How to add badges to a GitHub README

Updated 25 November 2026

Short answer

A README badge is a small image, usually served by a badge service such as shields.io, added with Markdown image syntax. Wrap it in a link so clicking it goes somewhere useful, for example [![License: MIT](badge-url)](LICENSE). Keep it to three or four badges near the title.

Step by step

  1. Choose what to show. Build status, latest version, license and downloads are the most useful. Skip badges that do not help a visitor decide.
  2. Get the badge URL. GitHub Actions gives each workflow a status badge URL; shields.io builds badges for versions, licenses and custom text.
  3. Add it with Markdown. Use ![alt text](image-url), and wrap it in [ ](link) to make it clickable.
  4. Put them in one line. Place all badges on a single line under the title so they read as one strip.

Examples

[![CI](https://github.com/OWNER/REPO/actions/workflows/ci.yml/badge.svg)](https://github.com/OWNER/REPO/actions/workflows/ci.yml)
[![npm](https://img.shields.io/npm/v/PACKAGE)](https://www.npmjs.com/package/PACKAGE)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)

Replace OWNER, REPO, PACKAGE and the workflow file name with your own.

Badges that match your README

Default badges are grey and blue, which can clash with a styled README. PrettyGit repository skins draw the build status from your real workflow and style it to match the skin, with light and dark versions.

FAQ

Where do GitHub Actions badges come from?
Every workflow has a badge at github.com/OWNER/REPO/actions/workflows/FILE.yml/badge.svg, and the Actions page has a "Create status badge" menu that writes the Markdown for you.
Do badges slow down a README?
Slightly, since each is a separate image request. A handful is fine; dozens are not.
Generate a styled repo README