Hreflang Tag Generator — Multilingual Link Set with x-default
DeveloperAn 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.
How to use
- 1Enter one "code URL" pair per line (e.g. en https://example.com/en/).
- 2Choose whether to auto-add x-default.
- 3Copy the tag set into the <head> of every language version of the page.
Reference
| Value | Meaning |
|---|---|
| ko | Korean (language only) |
| en | English (language only) |
| en-GB | English for the United Kingdom (language-region) |
| x-default | fallback page when no listed language matches |
Sources & standards
- Localized versions of your pages (hreflang) - Google Search Central
- BCP 47: Tags for Identifying Languages (RFC 5646) - IETF
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.