If your site has versions for different languages or countries, hreflang tags tell Google which version to show each searcher. Enter each language-region code with its URL and this tool writes the full set of tags, including x-default, ready to paste into the head of every version.
Frequently asked questions
What does hreflang do?
It tells Google which language or country version of a page to show to each searcher, so UK visitors see your UK page and so on.
Where do I put the tags?
In the head of every version of the page. Each version must list all versions, including itself.
What is x-default?
The page to show when no language or country matches, often your main or language-picker page.
More free SEO tools
DADomain Age CheckerCheck how old any domain is, when it was registered, when it expires and who the registrar is.NEWDCDuplicate Content CheckerCompare two articles or URLs to see how much text is duplicated, with matching sentences highlighted.NEWLTLong-Tail Keyword GeneratorTurn one seed keyword into dozens of long-tail ideas: questions, modifiers and comparisons.NEWKGKeyword GrouperPaste a keyword list and group it into topics by shared words, ready for one page per group.NEWSISearch Intent CheckerLabel each keyword as informational, commercial, transactional or navigational.NEWMDMeta Description OptimizerScore your meta description out of 100 for length, focus keyword, call to action and numbers.NEWROSEO ROI CalculatorEstimate monthly visits, sales and revenue from a target ranking, and the return on your SEO budget.NEWBLBacklink Opportunity FinderBuild ready-made Google searches that find guest post, resource and roundup pages in your niche.NEW See all 26 free tools →
How to use the Hreflang Tag Generator
- Enter one version per line: language-region code, then the URL (for example en-gb, https://example.com/uk/).
- Add your x-default URL.
- Click Generate tags.
- Paste the same full set of tags into the head of every version of the page.