Free tool

Hreflang generator

Show the right language and country version of your pages in Google. Generate hreflang tags as HTML, XML sitemap entries or HTTP headers, with checks for common mistakes.

Generate your tags

Your page versions

Add every language or country version of one page. The tags update as you type.

Start from
Versions
Fallback

Your hreflang tags


      

    Expanding into new markets? We plan and run international SEO for B2B SaaS, from site structure to localised content.

    See our SEO service

    How the generator works

    List every version of a page, and get hreflang tags that are ready to paste.

    1

    Add your versions

    Pick the language, and the country if it's country-specific, for each version of the page, with its URL.

    2

    Set a fallback

    Choose an x-default version for visitors whose language or country you don't cover.

    3

    Pick your format

    Get HTML tags for your page head, entries for your XML sitemap, or an HTTP header for PDFs.

    4

    Add it to every version

    Paste the same full set into every version listed, so each page links to all the others and itself.

    Expanding into new markets?

    We plan and run international SEO for B2B SaaS, from site structure and hreflang to localised content that ranks.

    Frequently Asked Questions

    What are hreflang tags?

    Hreflang tags tell Google which language and country each version of a page is for. They help Google show German visitors your German page and UK visitors your UK page, instead of the wrong version.

    Do I need hreflang?

    Yes, if you have the same page in more than one language, or versions for different countries in the same language, like US and UK pricing pages. If your site is in one language for one market, you don't need it.

    What is x-default?

    x-default is the version Google shows when none of your languages or countries match the searcher. It's usually your main international page or a language selector.

    Should I use HTML tags or my XML sitemap?

    Either works, and Google treats them the same. HTML tags are simplest for a few pages. The XML sitemap is easier to manage for large sites, because the tags live in one file instead of on every page. Use the HTTP header for PDFs and other non-HTML files.

    What are the most common hreflang mistakes?

    Missing return links, so page A points to page B but B doesn't point back. Wrong codes, like en-UK instead of en-GB. Pointing to URLs that redirect, are noindexed or aren't canonical. And leaving out the self-reference, where each page should list itself too.