Language Locale Tag Builder
Build and check BCP 47 language tags such as hi-IN or zh-Hant-TW, see their names, likely script and region, and how browsers format dates and numbers for them.
Open toolGenerate hreflang alternate links for language and regional versions of a page, as HTML, an HTTP header or sitemap XML.
Not yet professionally reviewed. This tool’s formulas and wording have not been checked by a qualified professional. Use the results as an estimate and verify anything important.
Guidance only; search engines decide how they crawl and rank pages. Check changes in your search console after deploying.
List each language or regional version of a page with its URL and an optional x-default, and get the alternate links in three forms: <link> tags for the HTML head, an HTTP Link header (useful for PDFs) or <xhtml:link> entries for an XML sitemap.
Each code is checked as a BCP 47 tag (with the classic UK-instead-of-GB mistake caught), URLs must be absolute, duplicate languages are flagged and a missing x-default is noted. Every version must carry the full set of links, including one to itself. Everything runs in your browser: nothing you paste or type is uploaded, and no website, DNS server or API is contacted.
Your code or text
Pasted or opened from a file
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Ready to download or copy
Add each language/region version and its absolute URL.
Set the x-default URL.
Fix any issues, then copy the HTML, header or sitemap output.
Zero-upload architecture
Free, with no sign-up or watermark · Your files stay on your device
Launch the app and add your file. There is nothing to install and no account to create.
Set the x-default URL.
Fix any issues, then copy the HTML, header or sitemap output.
Build and check BCP 47 language tags such as hi-IN or zh-Hant-TW, see their names, likely script and region, and how browsers format dates and numbers for them.
Open toolCreate a sitemap index XML that lists several sitemap files, with URL, date and same-site checks.
Open toolGroup URL variants (http/https, www, slashes, tracking parameters) under one canonical URL and get the rel=canonical tags.
Open toolBuild campaign-tagged links with UTM parameters, one at a time or in bulk, with tidy formatting.
Open tool