Built-in country badges with a natural-aspect flag chip — 265 countries and regions.
Show where your project is built with a “built in your country” badge. The country flag is rendered as a crisp little chip at its natural proportions next to the label — no stretching, no cropping. 265 countries and regions are supported.
| Badge | Endpoint | Description |
|---|---|---|
| Country flag | /flag/{code} | “built in country” with a flag chip |
{code} is an ISO 3166-1 alpha-2 country code (case-insensitive), e.g. us,
jp, gb. A handful of regions and subdivisions are supported too — see
Codes & regions below.
Path Parameters
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/flag/us.svg?mode=dark"><img alt="badge" src="https://shieldcn.dev/flag/us.svg?mode=light"></picture>
Default — the flag chip sits on a soft secondary surface.
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/flag/us.svg?mode=dark"><img alt="built in the USA" src="https://shieldcn.dev/flag/us.svg?mode=light"></picture>Outline variant — pairs well with a light-themed README header.
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/flag/jp.svg?variant=outline&mode=dark"><img alt="built in Japan (outline)" src="https://shieldcn.dev/flag/jp.svg?variant=outline&mode=light"></picture>/flag/us, /flag/jp, /flag/gb, /flag/in, …us → “the USA”, gb → “the UK”, nl → “the Netherlands”, eu → “the European Union”.gb-eng (England), gb-sct (Scotland), gb-wls (Wales), gb-nir (Northern Ireland), es-ct (Catalonia), es-ga (Galicia), es-pv (Basque Country).eu (European Union), and a few others.Codes are case-insensitive — /flag/US, /flag/us, and /flag/Us all work.
All standard badge query params apply (variant, size, mode, font,
label, colors, etc.). For example, override the label text:
Flags are from country-flag-icons (3×2), rendered inline as a flag chip. Country names are resolved from a static ISO 3166-1 map. No API key required. Cached 1 hour.