hreflang Tag Generator

Build a reciprocal hreflang set for a multilingual page.

What you provide

What to serve a visitor whose language matches nothing in your list.

Result

CHECK

4 hreflang tags for 4 languages

hreflang only works when it is reciprocal. Every page in the set must carry the full list including a tag pointing at itself, and if one page in the group omits the others, search engines discard the relationship rather than guessing at it. Adding an x-default is worth doing: it tells search engines what to serve to a visitor whose language matches nothing in your list. Region codes are optional and often overused, since en-GB and en-US only need separating when the pages genuinely differ.

Paste into the head of every listed page
<link rel="alternate" hreflang="en" href="https://example.com/" />
<link rel="alternate" hreflang="en-GB" href="https://example.com/uk/" />
<link rel="alternate" hreflang="de" href="https://example.com/de/" />
<link rel="alternate" hreflang="fr" href="https://example.com/fr/" />
Diagnostic telemetry
Languages
4
x-default set
no
Tags generated
4
en
https://example.com/
en-GB
https://example.com/uk/
de
https://example.com/de/
fr
https://example.com/fr/

What this cannot tell you

  • Generates tags from what you enter. It does not fetch your pages or verify that the URLs resolve.
  • It cannot check reciprocity, which is the requirement hreflang fails on most often. Every page in the set has to carry the full list, and only a crawl of all of them can confirm that.

Take this with you

hreflang Tag Generator on RunTheTests — free browser-based seo tools, no sign-up.