Country Code by name
What this tool does
This tool helps you find the two-letter country code (like 'ES' for Spain) based on the country's name or part of its name. You simply type the country name, and the platform returns the standard code used for addressing and data.
Note that the result depends on matching the beginning of the country name. If the name you enter is not unique enough or is misspelled, the tool may return an empty result instead of the correct code.
Common uses
- Converting a full country name into its standard short code for forms.
- Checking if a specific country name is recognized by the system.
- Standardizing address data by ensuring the correct country code is used.
Input data
| Parameter | Required | Example | Description |
|---|---|---|---|
country | Yes | Spain | Type the name of the country, for example 'Spain'. This is required. If the name is not found or is incorrect, the result will be empty. |
Output data
| Field | Description |
|---|---|
result | The two-letter country code, such as 'ES' for Spain, or an empty string if no matching country was found. |