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
LLllms.txt GeneratorCreate an llms.txt file that points ChatGPT, Claude, Perplexity and other AI tools to the most important pages on your site.NEW TOOLRD301 Redirect GeneratorTurn old and new URLs into Apache .htaccess or Nginx 301 redirect rules.NEWBLBacklink Opportunity FinderBuild ready-made Google searches that find guest post, resource and roundup pages in your niche.NEWROSEO ROI CalculatorEstimate monthly visits, sales and revenue from a target ranking, and the return on your SEO budget.NEWMDMeta Description OptimizerScore your meta description out of 100 for length, focus keyword, call to action and numbers.NEWSISearch Intent CheckerLabel each keyword as informational, commercial, transactional or navigational.NEWKGKeyword GrouperPaste a keyword list and group it into topics by shared words, ready for one page per group.NEWLTLong-Tail Keyword GeneratorTurn one seed keyword into dozens of long-tail ideas: questions, modifiers and comparisons.NEW See all 27 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.
This tool is part of our
SEO tools stack: see which free and paid tools cover every SEO job.