Hreflang Generator
Generate hreflang tags
🔒
This tool runs fully in your browser. No files or data are uploaded.
How to Use
- Enter your base URL
- Enter language codes and URLs (format: lang_code|url_path, one per line)
- Click "Generate Hreflang Tags"
- 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.