The ISO 3166-1 numeric standard assigns each country a three-digit code, such as
826 for the United Kingdom. Because they are digits only, these codes are
independent of any alphabet, which makes them ideal for payment, shipping, and
statistical systems that span many languages. This tool translates a numeric code
to a country and back.
How it works
The numeric codes are drawn from the United Nations M49 standard, so they line up
with UN statistical data. They are always three digits and are zero-padded:
Afghanistan is 004, not 4. The tool handles this for you — typing 4 still
finds Afghanistan by also matching the padded form 004. Because the codes carry
no spelling, they stay stable even when a country renames itself, an advantage
over the letter codes.
A practical note for developers: store these codes as strings, not integers, or you will lose the leading zeros that the standard requires.
Tips and example
To decode a number, type it — 840 resolves to the United States. To find a
country’s number, type its name, such as Brazil, which returns 076. Each
result also lists the alpha-2 and alpha-3 codes, so you can move between all three
ISO 3166-1 representations in a single lookup.