Hreflang Tag Generator — Multilingual Link Set with x-default

Developer

An hreflang generator turns a list of language-code and URL pairs into the <link rel="alternate" hreflang> tag set, including x-default, that declares the language versions of a page.

What is it

hreflang is the link tag convention that tells search engines which language or regional versions of the same content exist. Codes follow BCP 47 (language like ko or en, or language-region like en-GB), and x-default marks the fallback page for users matching no listed language. This tool converts lines in the form "code URL" into a finished tag set; the same set must appear on every language version so the return links stay reciprocal.

tags = <link rel="alternate" hreflang="code" href="URL" /> × languages + x-default

How to use

  1. 1Enter one "code URL" pair per line (e.g. en https://example.com/en/).
  2. 2Choose whether to auto-add x-default.
  3. 3Copy the tag set into the <head> of every language version of the page.

Reference

Hreflang Tag Generator — Multilingual Link Set with x-default Reference
ValueMeaning
koKorean (language only)
enEnglish (language only)
en-GBEnglish for the United Kingdom (language-region)
x-defaultfallback page when no listed language matches

Sources & standards

FAQ

Is my URL list sent to a server?

No. Tag generation runs in your browser; the list is never transmitted.

Is x-default required?

It is optional but recommended. x-default designates the page shown to users who match none of the listed languages, typically a language selector or your primary locale.

Can I put hreflang tags on just one page?

No. If page A references B, page B must reference A back (reciprocal return links) for search engines to trust the annotations. Placing the identical set on every language version is the safe pattern.

Related tools