Hreflang Generator

Add your URLs with language/region codes and instantly generate hreflang link tags for international SEO.

x-default URL (optional)

Catch-all for users whose locale does not match any specific variant.

Language Variants

URL
Language
Region

Use ISO 639-1 for language (e.g. en) and ISO 3166-1 alpha-2 for region (e.g. US).

Generated Hreflang Tags

Add language variants and click Generate Tags to see the output.

Remember

Paste these tags inside the <head> of every language variant of the page, not just the primary one. Each variant must reference all others, including itself.

Copied!

Summary

Add your URLs with language/region codes and instantly generate hreflang link tags for international SEO.

How it works

  1. Enter the base URL of the page you want to tag.
  2. Add one row per language/region variant with its full URL.
  3. Select the ISO 639-1 language code and optional ISO 3166-1 region code for each row.
  4. Optionally specify an x-default URL as a catch-all for unmatched locales.
  5. Click "Generate Tags" to produce the complete set of hreflang link elements.
  6. Copy the output and paste it inside the &lt;head&gt; of every language variant of the page.

Use cases

Frequently Asked Questions

Related tools

Last updated: 2026-05-29 · Reviewed by Nham Vu