Skip to content
Arrampa
Language: EN, English
Join

Language and region codes

The value that identifies a page’s language and, if needed, its country: de-CH is German for Switzerland.

What it is

Language and region codes are the labels that identify a page’s language and, if needed, the country it targets, such as de-CH for German in Switzerland. They’re used in hreflang and in the lang attribute.

For Google, the language comes first, in ISO 639-1 format, with two letters: de, fr, it, en. The region is optional and goes after it, in ISO 3166-1 alpha-2 format: CH, DE, AT. You can’t use the region on its own, and Google doesn’t accept codes outside these standards, such as es-419. Case doesn’t matter: de-ch and de-CH mean the same.

On a multilingual website

In Switzerland the question is when to add the region. If you have a single German version for Germany, Austria and Switzerland, de is enough. If an online shop in Basel has one version for Switzerland, with prices in francs and ss instead of ß, and another for Germany, it needs de-CH and de-DE. A classic mistake is en-UK: the code for the United Kingdom is en-GB.

How Arrampa checks it

Arrampa’s SEO audit flags as an error, page by page, every hreflang code that doesn’t exist, such as en-UK.

See the tool: SEO audit

Source: Google Search Central: localised versions of your page

Related terms

Guides

The full glossary

Want to know when we open?

One email to confirm and one on the day we open. Nothing else.

First we ask you to confirm your email; after that we only write on the day we open. Unsubscribe in one click. How we handle your email.