Hreflang Tag Generator
Free hreflang tag generator. Create hreflang link tags for multilingual and multi-region pages (including x-default) to help search engines serve the right version.
| Hreflang | URL | Remove |
|---|
Hreflang tags help search engines understand which version of a page to show to users in different languages or regions. This is especially useful for multilingual sites (like English and French) or multi-region sites (like en-US and en-GB).
How to use the hreflang generator
- Add one row per alternate page version (hreflang + URL).
- Optionally set an x-default URL for users who don’t match any locale.
- Copy the generated link tags and paste them into your page’s <head>.
Notes
Use absolute URLs: include the full URL (https://...).
Keep it consistent: each locale should reference the others using the same set of alternates.
Frequently Asked Questions
What is hreflang?
How do I format hreflang values?
What is x-default?
x-default hreflang value indicates which page to show when none of the language-specific versions match the user's preferences. It's typically your global/English page or a language selector page. Every hreflang implementation should include an x-default.Where do I put hreflang tags?
<head> section of each page. Every language variant should link to all other variants including itself (bidirectional linking). Alternatively, you can use XML sitemaps or HTTP headers, but HTML tags are most common.