Home / Tools / Hreflang Tag Generator

Free tool · Technical SEO

Show every market the right page.

Add each language or country version of a page. We generate correct hreflang tags as HTML or sitemap code, and flag the mistakes that stop Google using them.

  • HTML tags
  • XML sitemap
  • x-default
  • Error checks

Free. Results show right here, nothing is emailed to you.

Hreflang tag generatorFree

Add your website and email if you'd like our team to follow up with ideas. Results show here either way, nothing is emailed to you. Privacy policy.

Hreflang

Your tags are ready.

Checks

Before you publish

    Rules

    How hreflang works

    • Every version lists every other version, and itself.
    • Use ISO language codes (de, fr) and optional region (de-AT, en-GB).
    • Each URL must return 200 and not be canonicalised elsewhere.

    Expanding into new markets?Leave your email and our team will check your international setup and reply with the fixes that matter.

    ✓ Got it. We'll reply within one business day.

    How it works

    Hreflang in three steps.

    1. 1

      Add versions

      One row per language or country version of the same page.

    2. 2

      Generate

      Get the full set of tags, including the page itself and x-default.

    3. 3

      Install

      Add the same block to every version, or use the sitemap code instead.

    Questions

    Hreflang tag generator FAQs.

    What is hreflang?

    Hreflang tells Google which language and country each version of a page is for, so it can show the right version to each user (Google Search Central).

    Where do I put hreflang tags?

    In the HTML head of every page in the group, in your XML sitemap, or in HTTP headers for files like PDFs. Use one method consistently.

    What is x-default?

    A fallback page for users whose language or region you don’t target, often a homepage or a language picker.

    Do I need a region code?

    Only when you have different versions for the same language, for example es-ES for Spain and es-MX for Mexico. A language code alone covers every region.

    Do you store what I enter?

    We save your website, work email and result so our team can follow up with ideas if it helps. Results show on the page and are not emailed to you. We never sell your details, and you can ask us to delete them any time via our privacy policy.