BYTETOOLS

Flag Emoji Generator

Turn ISO 3166-1 country codes into flag emoji, decode flags back into codes, or browse and copy every country flag with its Unicode code points.

Flags

Type some country codes above and their flags appear here.

Subdivision flags (tag sequences)

  • 🏴󠁧󠁢󠁥󠁮󠁧󠁿EnglandgbengU+1F3F4 U+E0067 U+E0062 U+E0065 U+E006E U+E0067 U+E007F
  • 🏴󠁧󠁢󠁳󠁣󠁴󠁿ScotlandgbsctU+1F3F4 U+E0067 U+E0062 U+E0073 U+E0063 U+E0074 U+E007F
  • 🏴󠁧󠁢󠁷󠁬󠁳󠁿WalesgbwlsU+1F3F4 U+E0067 U+E0062 U+E0077 U+E006C U+E0073 U+E007F

These three are built from a black-flag base plus invisible tag characters, not from regional indicators, which is why they render as a plain black flag on platforms that do not support them. Everything on this page is computed locally in your browser.

What is the Flag Emoji Generator?

Flag emoji are not single characters. Each one is a pair of Regional Indicator Symbols — the letters of a country's ISO 3166-1 alpha-2 code, shifted into a special Unicode block.

  • Two-way conversion between ISO 3166-1 alpha-2 codes and flag emoji
  • Every officially assigned country code, searchable by name or by code
  • England, Scotland and Wales tag-sequence flags included separately
  • Unicode code points shown for each flag, ready to paste into code
  • Unassigned codes flagged before they render as bare letter tiles
  • Pure client-side character maths — no lookup service and no upload

How to use the Flag Emoji Generator

  1. 1

    Choose a mode: country codes to flags, flags to codes, or browse all flags.

  2. 2

    Type two-letter ISO codes separated by spaces, commas or new lines.

  3. 3

    Copy individual flags, or copy the whole set with one button.

  4. 4

    Switch to decode mode and paste text to read the country codes back out of it.

About the Flag Emoji Generator

Flag emoji are not single characters. Each one is a pair of Regional Indicator Symbols — the letters of a country's ISO 3166-1 alpha-2 code, shifted into a special Unicode block. Type US and you get two code points, U+1F1FA and U+1F1F8, which your device happens to draw as a single flag glyph.

This tool converts in both directions. Paste a list of country codes and get the flags, with any code that is not officially assigned called out before it renders as bare letters. Paste a bio or caption containing flags and get the country codes back, with counts and exact code points. A searchable browse mode lists every assigned country with a copy button.

The England, Scotland and Wales flags work differently again: they are tag sequences, a black flag base followed by invisible tag characters, so those three are provided separately. Everything is computed 100% locally in your browser from the character codes themselves — no lookup service, no upload, and it works offline.

Frequently asked questions

How are flag emoji made?

Each letter of a two-letter country code maps to a Regional Indicator Symbol, starting at U+1F1E6 for A, and the pair is drawn as a single flag. That is why copying half a flag leaves you with a lone letter in a box.

Why does a flag emoji show as two letters instead?

Because the platform has no image for that pair. Some systems, notably Windows in most contexts, do not ship country flag glyphs at all and show the regional indicator letters instead. The code points are still correct and will render as a flag elsewhere.

Why is there no flag emoji for England or Scotland?

They are not ISO 3166-1 countries, so they have no two-letter pair. Unicode encodes them as tag sequences instead: a black flag followed by invisible tag characters spelling the subdivision code. Those three are listed separately in this tool.

Can I use a flag emoji in a username or domain?

Sometimes, but support is unreliable. Many platforms strip emoji from usernames, and internationalised domain rules exclude them, so a flag that works in a bio may be rejected in a handle. Test it on the platform before relying on it.

Does a flag emoji count as one character?

Visually yes, but technically each is two code points and four UTF-16 units. Some platforms count a flag as one character and others as two or more, which is why a bio with several flags can hit a limit sooner than you expect.

Related tools