Hreflang Tag Generator
Build correct hreflang alternate link tags for every language version of a page.
Build hreflang tags
Tags generated: 0 · Duplicate codes skipped: 0
How to use the Hreflang Tag Generator
- Enter the default page URL and its hreflang code.
- Add the language code and URL for each translated page.
- Copy the alternate link tags into the head of every version.
Features
- Default URL plus five language rows
- Automatic x-default fallback tag
- Duplicate codes are skipped and counted
- Copy all alternate link tags at once
Advertisement
Frequently Asked Questions
Common questions about the free online hreflang tag generator.
They are alternate link tags that tell search engines which language and region each version
of a page targets.
Yes, it is good practice. The x-default tag points to the page shown when no other language
matches the visitor.
Yes. Use the full URL including the protocol, because relative addresses are not accepted.
Yes. If one page points to another language version, that page should link back to the first
one.
Use two letter codes such as en, fr or de, and add a region like en-GB when a country version
exists.
Put them in the head section of every language version, and include a self referencing link
as well.
Yes. Combine language and region, for example pt-BR for Brazilian Portuguese and pt-PT for
Portugal.
No. The tags are built locally in your browser, so your URLs never leave your device.
Yes, the hreflang generator is completely free and needs no sign-up.
Last updated: October 10, 2026