# Hreflang generator

> Build hreflang tags and sitemap entries for a shop in several languages and countries, with the codes checked.

Use it: https://central.to/tools/hreflang-generator · Free · Runs in your browser

List the language and country versions of a page and get the hreflang tags for every version, or the sitemap entries, with the codes checked.

## How it works

- Codes are checked for their form (a two-letter language such as de, optionally with a country such as de-CH); x-default is the fallback.
- Every version lists all versions, itself included, as search engines require.
- Copy the tags for the page head, or the entries for an XML sitemap.

## Questions

### Do I need hreflang for one language in several countries?

Yes, when prices, currency or availability differ, for example de-DE and de-CH. Otherwise search engines may show the wrong country's page.
