Hreflang Tag Generator

Generate hreflang link tags or XML sitemap entries for multilingual and multi-region pages, with validation of language codes.

How to use Hreflang Tag Generator

  1. Enter one line per version: language code | full URL.
  2. Choose HTML tags or XML sitemap entries.
  3. Copy the output into every language version of the page.

Supported features and limitations

Each version must list all versions including itself and link back, or Google may ignore the tags. Codes are ISO 639-1 language with optional ISO 3166-1 region (en-gb, not en-uk). Hreflang is a hint, not a command.

Privacy

Everything you type is processed locally in your browser and is not sent to our servers. No account is needed and there is no watermark.

Frequently asked questions

What is x-default?

The fallback page for visitors whose language or region is not listed.

Do I need hreflang for en-us and en-gb?

Only if the pages differ (currency, spelling, pricing); identical content may not need separate versions.

Related tools

  • Meta Tag Generator - Generate the title, description, robots and canonical tags for a page and copy the HTML.
  • XML Sitemap Generator - Build a valid XML sitemap from a list of URLs, with an optional lastmod date.
  • Canonical Tag Checker - Inspect the canonical tag in pasted HTML and check it is absolute, uses https, is unique and matches the page URL.
  • Schema Markup Generator - Generate FAQ, Article or Breadcrumb JSON-LD structured data to paste into a page.
  • SERP Snippet Preview & Meta Length Checker - Preview how a title and meta description may look in Google results and check their length in characters and pixels.
  • Keyword Density Checker - Find the most repeated words and two- or three-word phrases in your content with counts and density percentages.

More SEO & Content Tools · All free tools