Hreflang Tags Generator
Build hreflang link tags for multilingual sites, with language and region validation, an x-default, and duplicate detection.
- Runs in your browser
- Nothing uploaded
- Free, no sign-up
Language versions
hreflang tags
Place these in the head of every language version. Built locally.
How to Use Hreflang Tags Generator
- Pick a preset or add rows. Start from a preset, or add a row for each language version of the page.
- Enter the codes and URL. Add the language code, an optional region, and the full URL for each version.
- Set an x-default. Add an x-default URL for users whose language you do not target.
- Check the score. The checklist flags invalid codes, relative URLs, and duplicate values.
- Copy the tags. Place the tags in the head of every language version of the page.
Frequently Asked Questions
What is hreflang?
It is a tag that tells search engines which language and region a page is for, so the right version is shown to the right users.
What format do the codes use?
A two letter language code such as en, with an optional two letter region such as US, giving values like en-US.
What is x-default?
It is the fallback version for users whose language or region you do not specifically target. It is recommended on multilingual sites.
Do return tags matter?
Yes. Every language version must list all the others, including itself. Hreflang is ignored if the references are not returned.
Where do I put the tags?
In the head of each page. Hreflang can also be set in an XML sitemap or HTTP headers, but the head is the most common place.
Is my data sent anywhere?
No. The tags are built in your browser, so nothing you enter is uploaded.
Related Tools
Meta Tags Generator →
Generate a complete head block with title, description, canonical, robots, Open Graph, and Twitter…
HTML Tag Stripper →
Strip HTML tags from a snippet and keep just the text, with entities decoded…
Apple App Site Association (AASA) Generator →
Apple App Site Association Generator JSON files for iOS Universal Links. Configure app IDs…
Article Schema Generator →
Generate Article, NewsArticle, or BlogPosting schema markup instantly. Get rich results in Google Search.…
Canonical Tag Generator →
Canonical Tag Generator and Generate rel=canonical, og:url, and twitter:url tags from any URL. -…
Disavow File Generator →
Generate Google Search Console disavow.txt files. URL/domain modes, duplicate dedup, RFC 3986 validation. Free,…
Event Schema Generator →
Generate Schema.org Event JSON-LD - physical, virtual, or mixed events with attendance mode, offers,…
FAQ Schema Generator →
Build Schema.org FAQPage JSON-LD from Q&A pairs. Pretty, compact, or script-tag formats. Free, offline,…
Job Posting Schema Generator →
Build JobPosting structured data for Google Jobs with salary, location or remote, employment type,…
JSON Schema Generator →
Turn any JSON sample into a JSON Schema, with draft-07 or 2020-12, format detection,…
Keyword Density Checker →
Analyse keyword density for single words and phrases, with stop word filtering, counts, percentages,…
Keyword Overlap Analyzer →
Compare two texts to see shared keywords, words unique to each side, and an…