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
Codes are matched case insensitively and each one is used only once.

How to use the Hreflang Tag Generator

  1. Enter the default page URL and its hreflang code.
  2. Add the language code and URL for each translated page.
  3. Copy the alternate link tags into the head of every version.

Features

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