Hreflang Tag Generator

Generate hreflang tags that tell search engines which language and region each version of a page serves.

Sending each visitor the right version

If your site has versions in different languages or for different countries, hreflang tags tell search engines which version to show which searcher — the British English page to UK searchers, the Spanish page to Spanish speakers, and so on. Without them, Google can show the wrong version or treat your translations as duplicate content. This generates the correct tags for your set of pages.

List each version with its language and region, and the hreflang tags are produced.

The details that trip people up

Hreflang is notoriously fiddly. The tags must be reciprocal — every version has to list every other version, including itself — or search engines ignore them. The language and region codes have to be valid, and it is easy to mix up a language code with a country code. Because a single missing return tag breaks the set, it is worth generating them consistently and, ideally, validating the result. Get it right and international sites rank far more cleanly.

Common questions

What do hreflang tags do?

They tell search engines which language or regional version of a page to show which searcher, avoiding wrong-version and duplicate-content problems.

Why do mine not seem to work?

Hreflang must be reciprocal — every version must reference every other, including itself — and use valid codes. A missing return tag breaks the whole set.

Is anything uploaded?

No. The tags are generated in your browser.

More SEO & Web tools