Free Tool

Country Code Converter: Names in Five Languages to ISO and Salesforce

Paste a country column in English, German, Spanish, French or Japanese and get ISO 3166-1 alpha-2, alpha-3 or numeric codes, or the country names Salesforce’s picklists expect. Values that could mean two places are listed for you to decide. Free, in your browser, nothing uploaded.

Your Country Column

The converter needs JavaScript.

How It Works

Messy Names In, One Code Out

Each value is read as a code first, exactly as typed: two or three letters (DE, DEU) or up to three digits (276, and 4 for 004, which is how Excel stores it), so N/A is never Namibia. Codes in capitals always count. In lower case, the ones that are also everyday words (no, in, it) wait in To Check, and so do NA, which often means “not available”, and RU, which Spanish also uses for the United Kingdom, unless you tick the box. Anything else is a name: there, upper and lower case, accents, umlauts written as ae, oe or ue, and dots do not count, and a second pass ignores word order, so “Korea, Republic of” finds the same country as “Republic of Korea”.

The names come from your browser’s own country names in English, German, Spanish, French and Japanese, from the UN’s code list and from Salesforce’s list, plus a hand-kept list of short forms and older names such as USA, UK, Holland, Burma, Swaziland and Chinese Taipei.

Excerpt: how values are read

Deutschland    → DE
Oesterreich    → AT
Korea, Rep.    → KR
4              → AF   (004)
N/A            → no value, listed for you
Korea          → KR or KP? Listed for you

Try a Real Column

Each loads countries the way forms, events and exports deliver them.

Salesforce

What a Salesforce Country Field Accepts

With State and Country/Territory Picklists switched on, every address has a Country Code field for the ISO alpha-2 code and a Country field for the integration value, which by default is the full name. An import that writes USA or Deutschland there fails with “There’s a problem with this country, even though it may appear correct.”

Salesforce lists 235 countries and territories as standard. It files nine ISO entries, among them Puerto Rico, Guam and Palau, under the states and provinces of the United States, and Hong Kong under China’s (code 91). Cuba, Iran, North Korea, Sudan and Syria are not in its list. Kosovo, which the UN’s code list leaves out, has the code XK there. The two Salesforce outputs, name and code, follow that list and tell you which rows they cannot fill.

  • Map names to BillingCountry or codes to BillingCountryCode, and the state the same way: Salesforce warns that a mix can fail
  • Your org’s own list (Setup, State and Country/Territory Picklists) decides what it accepts; an admin can change the integration values there
  • Older orgs may still hold older names such as Turkey, Czech Republic or Swaziland; the converter names them when they come up, and their codes, TR, CZ and SZ, are the same
  • Switching the picklists on in an org that syncs with Pardot? We do that cleanup as part of Pardot consulting

One address, two fields

BillingCountry       United States
BillingCountryCode   US
BillingCountry       USA
→ There’s a problem with this country

Convert a Country Column in Four Steps

From a column typed by hand to values an import accepts.

  1. 1

    Paste or Open

    Paste the column from your sheet, blank cells and all, or open a CSV file.

  2. 2

    Pick the Output

    ISO alpha-2, alpha-3 or numeric, the Salesforce name or code, or a name in one of five languages.

  3. 3

    Settle the Rest

    To Check lists ambiguous and unknown values once each, with the lines they are on.

  4. 4

    Paste It Back

    Copy Column pastes next to your column row by row; the CSV download adds the column for you.

What It Matches, Read Locally

The rules behind each result, and where the converter stops.

  • 249Countries and areas with all three codes
  • 5Languages read and written
  • 0Bytes uploaded
  • Codes as typed. Two letters, three letters or up to three digits, exactly as typed, are read as codes: DE, deu and 276 all find Germany, and 4 is read as 004, the numeric code Excel shortens. N/A, #N/A and n/a are never Namibia.
  • Words that are codes. NO, IT and IN in capitals are codes. Written in lower case (no, it, in), and NA and RU in any case, they go to To Check with the country they could be, unless you tick the box.
  • Never guessed. Korea, Congo, America, Virgin Islands and Saint Martin each fit more than one place: the row stays empty and To Check names the candidates. Guinea and Georgia are read as the countries, with a note for Georgia.
  • Parts of a name. England, Scotland, Wales and Northern Ireland become GB and Holland the Netherlands, each with a note, because the UN list has no entry of their own for them. Norfolk or Salvador alone get a suggestion, never a value.
  • Typos. A value one letter away from a known name (two in long names), such as Untied States, gets a suggestion in To Check and is never filled in for you.
  • Values with extras. Germany (DE) is read whole. Berlin, Germany gets Germany as a suggestion and stays empty.
  • No value. Dashes, question marks, null, unknown and Excel’s #N/A go to To Check as “no value”.
  • Sources. Codes from the UN Statistics Division’s M49 list, Taiwan from Unicode CLDR, Salesforce names from Salesforce Help (three of them spelled the way org metadata published on GitHub, in the SFDC-Assets repository, stores them), all read on 24 November 2026; names in other languages from your browser.

Country Code Converter FAQ

Short answers to what people ask about country codes and Salesforce imports.

What is the difference between ISO alpha-2, alpha-3 and numeric country codes?

All three stand for the same country in ISO 3166-1: alpha-2 has two letters (DE), alpha-3 three letters (DEU) and numeric three digits (276). The numeric codes are the same as the UN’s M49 codes. For Salesforce’s Country Code field, convert to Salesforce country code: it gives the alpha-2 codes Salesforce lists as countries and sends the others, such as Puerto Rico or Hong Kong, to To Check.

Does a Salesforce country field take the name or the code on import?

Both, in different fields. BillingCountry takes the integration value, by default the full name such as United States; BillingCountryCode takes the ISO code, US. Map either the name fields or the code fields for country and state together: Salesforce’s import article warns that mixing them can fail.

Why does Salesforce say “There’s a problem with this country, even though it may appear correct”?

The value in the Country field does not match an integration value in your org: USA instead of United States, Deutschland instead of Germany, or a name an admin has changed. Convert the column to the Salesforce country name, or to the Salesforce country code for the Country Code field.

Is the code for the United Kingdom GB or UK?

GB for alpha-2 and GBR for alpha-3. The converter reads UK as the United Kingdom and says so in the result.

Can Salesforce accept “USA” instead of “United States”?

Only if an admin changes the integration value of United States to USA in Setup; by default it is the full name. Without that change, convert the column to United States, or to US for the Country Code field.

Is my list uploaded?

No. The list or file is read and converted in your browser. Nothing is sent or stored, and nothing from it reaches analytics.

We Make Salesforce Marketing Work for You

Talk to a certified consultant, not a salesperson, and leave the first call knowing your next step.