Free tool · Technical SEO
Hreflang tag generator
Add each language or regional version of a page to generate hreflang annotations as HTML link tags, XML sitemap entries or HTTP headers. Codes are validated as you add them, so mistakes such as en-UK never ship.
Versions of this page
One row per language or regional version.
Shown to searchers whose language you don't target. Often your main page or a language selector.
Add a language and a URL to generate the tags.How it works
Three steps, no signup.
Add your versions
Pick a language, an optional region and the URL for each version of the page. Paste a list to add many at once.
Set a default
Choose an x-default page for visitors whose language you don't target.
Copy the output
Get the same set as HTML, XML sitemap or HTTP header format. Add it to every version of the page.
FAQ
Hreflang Generator questions.
What is hreflang?
An annotation that tells search engines which language and region a page targets and where its alternate versions live, so each searcher gets the right version in results.
Which codes does hreflang use?
An ISO 639-1 language code, optionally followed by an ISO 3166-1 alpha-2 region, such as en, en-US or pt-BR. A region on its own is invalid, and the UK is GB, not UK.
What is x-default?
The fallback page for users whose language or region does not match any of your versions, often a language selector or your main international page.
Does every page need to list itself?
Yes. Each version must list all versions, including itself, and every version must link back. Missing return links are the most common reason Google ignores hreflang.
More free tools
Keep going.
Robots.txt Generator
Build a robots.txt, block AI training bots, keep AI search.
XML Sitemap Generator
Turn a list of URLs into a valid XML sitemap.
Sitemap Validator
Check any sitemap by URL: errors, noindex, redirects, robots.txt.
Htaccess Redirect Generator
301 and 302 redirects for Apache, Nginx, Netlify and Vercel.
Tools find the work. Lynx does it.
Lynx is an AI agent that builds your backlinks automatically across 2,000+ directories, forums and content platforms. Monitored for 90 days. Your first link is free.