Free tool · No sign-up
Free Hreflang Generator
Running an English and a Welsh version of your site, or separate pages for the UK and Ireland? This hreflang generator writes the hreflang tags that tell Google which version to show to whom, as HTML for the page head or as XML sitemap entries.
- 30+ languages
- HTML or XML sitemap
- Checks for common mistakes
Generator
Create your hreflang tags
Add one row for each version of the page, pick its language and country, and paste its full URL. The code updates as you type.
Each version of the page
Runs in your browser. Nothing is sent to us.
Getting it right
How do hreflang tags work?
Hreflang tells Google that two or more pages are the same content for different languages or countries, so a searcher in Dublin sees your Irish page and a searcher in Cardiff sees your UK one. Google’s own guide is at Google Search Central.
Every version lists every version. If your English page points to the Welsh page, the Welsh page must point back, and both must include a tag for themselves. Without those return tags, Google may ignore the hreflang.
Use the right codes. The language comes first (en, cy, fr), then the country if you need it (GB, IE, US). The United Kingdom is GB, not UK, so British English is en-GB.
Pick one method. Put the tags in the page head or in your XML sitemap, not both with different values. Sitemaps are easier when you have lots of pages; head tags are easier to check by eye.
If your site is only in English and only for the UK, you do not need hreflang at all. Our Free SEO Audit shows whether a page already has hreflang tags.
Hreflang generator FAQs
Is this hreflang generator free?
Yes. It is free with no limit and no sign-up, and it runs in your browser.
Do I need hreflang for a Welsh-language version of my site?
Yes, if you have the same pages in English and Welsh. Tag the English pages en-GB and the Welsh pages cy-GB (or just cy), and link each pair both ways.
What does x-default mean?
x-default is the page Google shows when none of your versions match the searcher’s language or country. Most sites point it at their main English page or a language picker page.
Should hreflang go in the page head or the sitemap?
Either works. Use one method and keep it complete. The sitemap is tidier for large sites, and the page head is simpler for a handful of pages.
Does hreflang help my rankings?
Not directly. It helps Google show the right version to the right people, which stops your UK and Irish pages competing with each other and sends visitors to the page in their language.
Keep going
Related free tools
These free tools work well alongside this one. If you would rather we handled it for you, see our WordPress technical SEO fix. You can also browse all our free SEO tools.
Create
Robots.txt Generator
Make a safe robots.txt file with WordPress presets, your sitemap and AI crawler options.
Check
Google Index Checker
See if Google has indexed a page, and send new URLs to search engines with IndexNow.
Check
Free SEO Audit
Run 20 SEO checks on any page and get a score out of 100 with a plain-English fix list.
Free SEO audit · Fixed quote
Running a site in more than one language?
Hreflang mistakes are easy to miss and hard to spot in Search Console. Send us your website and our Cardiff SEO agency team will check it, then reply within one business day with a ranked fix list and a fixed price.
- Free audit, no obligation and no contract to sign
- Reply within one business day
Book a meeting and get exclusive deals plus a free gift
Prefer to talk? Call us, WhatsApp or Email hello@wayrankpro.co.uk.
Cardiff, South Wales · Serving businesses across the UK