Hreflang Tag Generator
1Your page versions
Add one row for each version of your page. Pick the language and country it targets, or paste your URLs or existing tags with Add many at once.
Example data. These rows use example.com so you can see how it works. Replace them with your own page.
How are your country versions set up?
- A list of URLsOne per line. The tool reads the language and country from each URL where it can, such as
/en-in/orfr.yoursite.com. - A spreadsheetCopy three columns from Excel or Google Sheets: URL, language, country. A CSV works too.
- Your existing tagsPaste the hreflang lines from your page source or sitemap to check and fix them.
2Fallback page (x-default)
This is the page Google shows to visitors whose language or country matches none of your versions. Most sites use their global page or a language selector.
3Your hreflang tags
Checks
How to add the tags to your site
- Copy the codeUse the HTML tags for normal web pages. Pick one method only: HTML tags, XML sitemap or HTTP header.
- Paste it on every versionThe same block goes inside the
<head>of each page listed above. On WordPress, use your SEO plugin or a header code plugin. - Check the return tagsEvery version must list itself and all the others. If one page is missing the block, Google ignores the pair.
Taking your site to more countries?
Hreflang is one piece of international SEO. Learn the rest step by step with Mohit's SEO Training.