Hreflang Generator

Generate hreflang tags

🔒 This tool runs fully in your browser. No files or data are uploaded.
Format: language_code|url_path (e.g., en|/ or es|/es/)

How to Use

  1. Enter your base URL
  2. Enter language codes and URLs (format: lang_code|url_path, one per line)
  3. Click "Generate Hreflang Tags"
  4. Copy the generated tags to your HTML head section

FAQ

  • What are hreflang tags?
    Hreflang tags tell search engines which language and geographic version of a page to show users in different locations.
  • What language codes should I use?
    Use ISO 639-1 language codes (e.g., en, es, fr, de) optionally combined with ISO 3166-1 country codes (e.g., en-US, en-GB).
Disclaimer: Hreflang tags must be bidirectional (each page must reference all other language versions). Make sure all URLs are accessible.