Hreflang Tag Generator

Generate Hreflang Tags

Add language/region variations of your page below to generate the necessary `link rel="alternate"` tags for your HTML `` section.

How to Use

  1. For each language or language-region version of your page, enter the correct language code (e.g., `en` for English, `es-MX` for Spanish in Mexico) and the full URL for that version.
  2. Use the "Add Language/URL Pair" button to add more variations. Use the "X" button to remove a pair.
  3. Optionally, enter a Default/Fallback URL for users whose language/region doesn't match any specified tags (using `x-default`).
  4. The necessary `` tags will be generated automatically below.
  5. Click "Copy Tags" and paste the generated tags into the `` section of **all** the specified page versions.

Important: Hreflang tags must be reciprocal – each language version must link to all other versions (including itself).

Why Use Hreflang Tags?