How a flag emoji hides a country code
A flag emoji looks like a picture, but under the surface it is two letters. Every flag is built from two special characters called regional indicators, one for each letter of the country’s two-letter code. The flag of the United States is the regional indicator for U followed by the one for S. The flag of Spain is the indicator for E followed by the one for S. Your phone or browser sees those two letters and draws a flag instead of showing them.
That is why a flag emoji is really a code in disguise. The code is the same two-letter ISO code used in web addresses, like .es for Spain or .jp for Japan, and in shipping forms and country lists. This tool reads the two hidden letters and shows them plainly, so you can use the code anywhere a flag alone will not work.
How to use the converter
Copy a flag emoji from anywhere, a message, a website, or your keyboard, and paste it into the box. Press the button, or just paste and watch, because the tool updates as you type. The big letters show the code, and the line below names the country.
If you paste text that is not a flag, the tool tells you it does not look like a flag. Paste one flag at a time. Two flags in one paste give a confusing result, because the tool reads the first two letter symbols it finds and stops there.
Worked example
Paste the flag of the United States. The tool reads the two indicators, U and S, and shows the code US, with the country name United States. Paste the flag of the United Kingdom. The indicators are G and B, so the code is GB and the country is the United Kingdom.
Paste the flag of Spain. The indicators are E and S, so the code is ES and the country is Spain. Paste the flag of Japan. The indicators are J and P, so the code is JP and the country is Japan. Paste the flag of India. The indicators are I and N, so the code is IN and the country is India. Every flag works the same way, because the code is always the two letters of the ISO country code.
Who uses this converter
Developers use it most, because they often get a flag emoji from a user and need the country code for a database, a form, or a shipping check. Instead of looking the flag up by eye, they paste it here and get the code in a second.
Travellers and shoppers use it too, when a website shows only a flag and they want to know which country it stands for. Teachers use it to show students how emoji work, because a flag is the clearest example of an emoji that is really text in disguise.
Honest limitations
This tool knows the names of 36 common countries. Any other valid flag still gives the right two letters, but the name line says the name is not in the short list. The code itself is always correct, because it comes straight from the emoji.
The tool only works with real flag emoji. A picture of a flag, a flag drawn with text, or a flag made of two separate letter emojis will not decode. Some flags, like the flag of England, are not country codes at all, and they use a different mechanism, so this tool does not cover them.
Frequently asked questions
Why is the United Kingdom GB and not UK? Because the ISO code for the United Kingdom is GB, from Great Britain. UK is used in web addresses, but the official two-letter code is GB.
Can I paste two flags at once? No, paste one flag at a time. The tool reads the first two letter symbols it finds, so a second flag would be ignored.
Does the tool work with every flag? It works with every national flag built from two regional indicators, which is almost all of them. A few special flags use a different system and will not decode.
Where does the tool run? In your browser, on your own device. Nothing is sent to a server, and nothing is stored.
También disponible en español: Convertidor De Banderas Emoji A Código De País – Convierte Banderas En Códigos
