Free tool· No signup

Free Hreflang Tag Generator

Add a language or region version, paste its URL and copy the ready-made hreflang tags. The tags update live as you type — including x-default.

Free, no signup — the tags are built in your browser and nothing is uploaded or stored.

Live — the tags update as you type.

What is an hreflang tag?

An hreflang tag is a short line of HTML placed in the <head> of a page. It tells search engines which language or regional version of a page to show for a given searcher — for example, the English page for visitors in the UK and the French page for visitors in France. Without hreflang, search engines may treat translated pages as duplicate content, split ranking signals across versions, or show the wrong version in results. It works alongside a canonical tag — use our Canonical Tag Generator to build the canonical tag for each version too, and our Meta Tag Generator for the title, description and social tags.

How to use this hreflang tag generator

  1. Enter the language or region code for each version of your page, such as en, en-US, fr or de. Use x-default for the fallback page shown when no version matches.
  2. Paste the full URL of that version, starting with http:// or https://.
  3. Watch the tags update live in the box on the right — one <link rel="alternate" hreflang="..." href="..."> tag per row, every change reflected straight away.
  4. Add more rows with the Add row button, or remove a row with the × button — its tag disappears at once.
  5. Copy the tags with the Copy tags button, or download them as a text file, then paste them into the <head> of every language version of the page, including the page itself.

Hreflang tags and link building

An hreflang tag decides which version ranks, but it does not create authority on its own — pages still need links. Our link building services and guest posting build them for you, with SaaS link building for software companies and white label link building for agencies. To write the titles and descriptions that appear with your pages, read how to use a free meta tag generator and how to write meta titles and descriptions that get clicks, and explore the rest of our free SEO tools to keep improving your pages.

Frequently asked questions

An hreflang tag is a link tag in the head of a page that names one language or regional version of that page and gives its URL. Search engines use it to show the version that best matches a searcher’s language and location, instead of guessing — or showing the wrong one.

x-default is the fallback version of a page. It is shown when none of your listed language or region versions matches the searcher, so it is usually your main page, a global page, or a language selector page.

Paste every generated tag in the head of every language version of the page. Each version should list itself and all the other versions, including the x-default version, so the set is complete and reciprocal.

Use a language code such as en, fr, de or es, and add a region after a hyphen when you need one, such as en-GB or en-US. The only special value is x-default, which is not a language code but a fallback instruction.

Yes. Every version of the page should carry the full set of tags, pointing to itself and to every other version. A version that is missing from the set can be treated as a separate page, which weakens the whole group.

They help a lot. Hreflang tells search engines that translated pages are versions of the same page rather than copies, so they are not treated as duplicates of each other. It does not replace a canonical tag, which still decides the preferred version of a page.

We scale your organic traffic with editorial content & natural link building.

Tell us your site and your competitors — we come back with a free link plan, a site list and a custom quote.