Hreflang Generator
Generate hreflang tags for multilingual and multi-region websites online for free — paste your language/URL pairs and get valid markup instantly.
What is hreflang?
Hreflang is an HTML attribute that tells search engines which language and, optionally, which region a page is meant for, and points to the equivalent page in other languages. It's used on sites that publish the same content in multiple languages or serve different URLs to different regions, so the correct version shows up in search results for each visitor.
Each page in a language group needs a link back to every other page in the group, including itself — this tool builds that full set of tags automatically from a simple list.
GuideHow to use it
How the tags are built
Each row becomes a <link rel="alternate" hreflang="..." href="..." /> tag, and every page links to all the others in the set, including itself — the pattern hreflang requires to be interpreted correctly. An x-default entry can be included for visitors whose language doesn't match any listed version.
Features & benefits
Why this runs entirely in your browser
Site URLs and structure can reveal unlaunched pages, so nothing is uploaded. The markup is assembled in JavaScript locally in the tab, which means it keeps working offline once the page has loaded.
Common uses
Setting up hreflang for a new multilingual site launch, fixing missing self-references after an audit, or regenerating tags after adding a new language version of a page.
Frequently asked questions
A few things people usually want to know before trusting the numbers.
Yes — every page in the set should include a tag pointing to itself, in addition to the tags pointing to the other language versions.
"en" targets English speakers generally, while "en-US" targets English speakers specifically in the United States — use region codes only when content actually differs by region.
It specifies which page to show visitors whose language or region doesn't match any of the listed hreflang values — often a language-selector or default page.
In the <head> of each HTML page, or alternatively listed in an XML sitemap using the same hreflang attributes.
No. All markup is generated locally in your browser. Nothing entered here is sent to a server, stored, or shared.