Free 12 Months of SEO Strategy to Help Your Business Grow – No Strings Attached. Claim it now

Generate hreflang tags that actually validate.

Paste the URLs for each language or country version of a page. You’ll get the complete, reciprocal hreflang set — as HTML tags, HTTP headers or XML sitemap entries — with the common mistakes flagged before you ship them.

What this tool is all about

Hreflang tags tell Google which version of a page to show someone based on their language and country. They’re simple in principle and easy to get wrong in practice, because every page has to list every other page including itself, and a single missing or mismatched URL invalidates the whole set. This tool builds the complete reciprocal block for you and flags the errors before they reach production.

Who can use this tool

Anyone running a site in more than one language or country. Businesses serving India and the Gulf in English and Arabic. Brands with separate UK, US and Australian sites competing with each other in search. Developers who have been handed a hreflang ticket and would rather not read the specification.

Benefits of using this tool

  • Detects language and region from your URLs automatically
  • Builds the reciprocal set, so every page lists every other page
  • Catches duplicate locales, missing x-default and mismatched URLs
  • Three output formats — HTML, HTTP header and XML sitemap
  • Bulk paste, so a twenty-market site takes one step

The mistakes that break hreflang

  • Missing return links. If page A points to B but B doesn’t point back, Google ignores the pair entirely.
  • No self-referencing tag. Every page must include a tag pointing at itself. This is the most common omission.
  • Region code used as a language. hreflang="uk" means Ukrainian, not the United Kingdom. British English is en-GB.
  • URLs that don’t match the canonical. A trailing slash or an http/https mismatch is enough to break the link.
  • Pointing at redirected or noindexed pages. Every URL in the set must return a 200 and be indexable.

Which output format should you use

Use the HTML tags for most sites — they go in the head of every page in the set. Use HTTP headers for non-HTML files like PDFs, which have no head to put tags in. Use the XML sitemap version if you have a large site or many markets, since it keeps all the annotations in one file and means you don’t have to edit hundreds of pages. Pick one method and stick to it; mixing them across the same pages causes conflicts.