ISO 3166-1 Numeric Country Code Validator
Check whether text is a valid ISO 3166-1 numeric country code as you type it, right in your browser, without sending it anywhere.
Input
Output
No value
Guide
What is an ISO 3166-1 numeric country code?
ISO 3166-1 numeric codes are three-digit codes for countries and territories: 276 for Germany, 250 for France, 392 for Japan, 840 for the United States. They come from the M49 standard of the United Nations Statistics Division and don't depend on any alphabet, which is why UN statistics, the chips on bank cards and other systems that work across many languages use them. When only a country's name changes, its number usually stays, while its letter codes may change. When its territory changes a lot, it gets a new number.
Developers and data analysts check numeric codes when they read bank or customs files, join statistics from different sources, or tidy up a column where a spreadsheet dropped the leading zeros.
Tool description
Type or paste a code into the ISO 3166-1 numeric country code field, and the result shows as you type: "ISO 3166-1 numeric country code is valid" or "ISO 3166-1 numeric country code is not valid". Spaces and line breaks around the code are ignored. The page has no settings.
What passes and what fails
- Exactly three digits from the list, leading zeros included:
076for Brazil and036for Australia pass, while76and36fail - Retired codes fail, such as
530for the Netherlands Antilles, whose islands now have their own codes, like531for Curaçao - M49 numbers for regions fail, as they aren't countries:
001for the world,150for Europe,419for Latin America and the Caribbean - Signs, decimals and extra digits fail:
+276,276.0,2760
Good to know
- A code that passes is in the copy of the ISO list that comes with validator.js. The page can't tell whether it's the country you meant.
- Spreadsheets often drop leading zeros, so add them back before you check a column of codes.
- Currency codes have numbers too, and many match the country's (
840is also the US dollar), but some don't:978, the euro's number, isn't a country code and fails. - Each number goes with a two-letter and a three-letter code:
276isDEandDEU. Check those with the ISO 3166-1 Alpha-2 Country Code Validator and the ISO 3166-1 Alpha-3 Country Code Validator.
Features
- Checks three-digit ISO 3166-1 codes against the list
- Leading zeros required, as in the standard
- Rejects retired codes and region numbers
- Results as you type, with no button to press
- Runs in your browser, so nothing you type is sent anywhere