Free SEO tools / International SEO

Hreflang Generator

Generate a complete set of HTML hreflang tags or XML sitemaps for your language variants.

Add equivalent pages in different languages. Include every variant in this group; add x-default for an optional fallback.

How to use the Hreflang Generator

  • Add equivalent language pages

    Enter each language or language-region code with its full page URL. Keep the group focused on translations of the same content.

  • Choose your annotation format

    Generate HTML link tags or XML sitemaps. For pages on different websites, download a separate sitemap per website. Add x-default for an optional fallback.

  • Publish and check the live group

    Place the complete HTML set in every listed page's head, or publish the generated sitemap files for their websites. Then test the live pages with Hreflang Checker.

Publish a consistent set of language alternatives

Use the generator when introducing translations, adding regional versions or replacing inconsistent handwritten tags.

  • The generated set includes self references and the other listed variants. Keep the same complete set on every equivalent page.
  • Use valid language and optional region codes, such as en, nl or en-GB. x-default is a fallback, rather than a language code.
  • The generator does not request your URLs. Check page availability, canonical targets and live return links after publishing.

How it works

Generate matching annotations for every language page

Add the equivalent pages in one language group. Generate the same complete HTML alternate set for each page, including self references, or download XML sitemaps grouped by website. Every sitemap keeps the complete set of alternate links.

Check your complete website with URLMatcher

Where do the HTML tags go?

Add the entire generated set inside the head of every equivalent language page. Each page receives the same set, including a link to itself.

Which language codes can I use?

Use a two-letter language, optionally followed by a script and country code, such as en, en-GB or zh-Hant-TW. x-default is optional. Use GB rather than UK.

What does x-default do?

It identifies your fallback page, such as a language selector. It can use a URL already assigned to a language.

Are my pages checked?

No URLs are fetched by the generator. After publishing, use the Hreflang Checker to inspect the live annotations and return links.

Can language pages use different domains?

Yes. HTML tags include every variant. For XML, the generator creates a separate sitemap for each protocol and host, while keeping the complete set of alternate links in every file. Download and publish each file for its website.

Related free tools

Try URLMatcher

Take your next SEO step with URLMatcher

Put your technical SEO changes in context. Create an SEO Project to inspect page status, indexability, canonicals and internal links across your website.