Country Flags

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.

built in the USA
United States
built in the UK
United Kingdom
built in Japan
Japan
built in Germany
Germany
built in India
India
built in Brazil
Brazil

Available badges

BadgeEndpointDescription
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.

GET/flag/:code.svg

Path Parameters

required
![badge](https://shieldcn.dev/flag/us.png)
badge preview

Quick examples

![built in the USA](https://shieldcn.dev/flag/us.svg)
![built in Japan](https://shieldcn.dev/flag/jp.svg)
![built in Germany](https://shieldcn.dev/flag/de.svg?variant=outline)

Examples

built in France
France
built in Canada
Canada
built in South Korea
South Korea
built in Australia
Australia
built in South Africa
South Africa
built in the Netherlands
Netherlands
built in the European Union
European Union (region)
built in the USA outline
Outline variant

Default — the flag chip sits on a soft secondary surface.

![built in the USA](https://shieldcn.dev/flag/us.svg)

Outline variant — pairs well with a light-themed README header.

![built in Japan (outline)](https://shieldcn.dev/flag/jp.svg?variant=outline)

Codes & regions

  • Countries — use any ISO 3166-1 alpha-2 code: /flag/us, /flag/jp, /flag/gb, /flag/in, …
  • Definite articles are handled automatically: us → “the USA”, gb → “the UK”, nl → “the Netherlands”, eu → “the European Union”.
  • Subdivisionsgb-eng (England), gb-sct (Scotland), gb-wls (Wales), gb-nir (Northern Ireland), es-ct (Catalonia), es-ga (Galicia), es-pv (Basque Country).
  • Regionseu (European Union), and a few others.
  • Unknown codes return a readable text badge (never a broken image).

Codes are case-insensitive — /flag/US, /flag/us, and /flag/Us all work.

Customizing

All standard badge query params apply (variant, size, mode, font, label, colors, etc.). For example, override the label text:

![made in Japan](https://shieldcn.dev/flag/jp.svg?label=made+in)

Data source

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.