Skip to content

🌐 hreflang Tag Generator

Pick a base URL and target locales to generate <link rel="alternate" hreflang="..."> tags in bulk. Auto x-default, ISO 639 + country code validation, CSV bulk multi-path mode.

✅ 100% free · no signup · runs in your browser

🔒 About Privacy

Comma-separated. ISO 639-1 (en) or ISO 639-1 + ISO 3166-1 (en-US, zh-CN).

📄 Generated tags


📖 How to Use

  1. 1
    Enter base URL
    Enter the URL you want to localize.
  2. 2
    Specify locales
    Enter target language codes comma-separated (en, ja, ko).
  3. 3
    Get tags
    Paste the generated <link> tags into each page <head>.

❓ FAQ

Is x-default required?
Not required but recommended by Google. It is the fallback shown when no locale matches.
Where should hreflang go?
HTML , HTTP header, or XML sitemap. Sitemap is easier for large sites.
Are bidirectional links required?
Yes. A→B and B→A must both declare hreflang. Google ignores one-sided links. This tool emits full bidirectional sets.
🐛 Found a bug or issue with this tool?

Free to use, no signup. Even just the steps to reproduce are helpful. Reports go directly to the operator and help us fix issues.

* Browser info (UA / screen / language / URL) is sent automatically to help reproduce the issue