Hreflang Tag Generator & Checker
Build hreflang annotations for every language and region version of a page as HTML tags, an HTTP Link header or XML sitemap entries, then validate the live pages for return links, x-default, valid codes and canonical conflicts.
Generate hreflang tags
Add one row per language or regional version. Every version must carry the same set of annotations, including one for itself. Runs in your browser.
Validate hreflang on a live page
We read the page's hreflang annotations (HTML, HTTP Link header and, if you add it, your XML sitemap), then fetch up to 50 alternate URLs and check every one. This takes from a few seconds up to three minutes.
| URL | hreflang | Status | Issues |
|---|
About hreflang
hreflang annotations tell Google and other search engines that several URLs are the same content in different languages or for different countries, so each searcher gets the right version. Bing uses the lang attribute and content-language instead, so set those as well.
The rules are strict: every version lists all versions including itself, every listed page links back (return links), all URLs are absolute, return HTTP 200, are indexable and are canonical to themselves. One wrong canonical or redirect is enough for search engines to ignore the pair.
Codes are an ISO 639-1 language (de), optionally followed by an ISO 3166-1 alpha-2 country (de-AT). Add x-default for everyone else. Check your other tags with the Meta Tag Analyzer and build your sitemap with the XML Sitemap Generator.
Was this tool useful?
Thanks for your feedback!
Could not send your feedback. Please try again later.
Frequently Asked Questions
hreflang tells search engines which language and regional versions of a page exist, so Google can show the German page to German users and the UK page to British users. Each version lists all versions, including itself.
All three work equally well for Google. HTML link tags are the most common. HTTP Link headers are needed for non-HTML files such as PDFs. Sitemap entries keep the markup out of your pages, which helps on large sites. Pick one method and keep it consistent.
x-default marks the page shown to users whose language or region matches none of your versions, often a language selector or the English version. It is optional but recommended.
The language is an ISO 639-1 code such as en, de or ja, optionally followed by an ISO 3166-1 alpha-2 country code such as en-GB or es-MX. Common mistakes are en-UK (use en-GB), en_US with an underscore, and jp instead of ja. A region alone, such as "us", is not valid.
It reads the hreflang annotations of your page from the HTML, the HTTP Link header and optionally your sitemap, then fetches up to 50 alternate URLs and checks the language codes, duplicates, x-default, self-references, return links, HTTP status, redirects, noindex, canonical tags and mixed http/https URLs.
If page A lists page B as an alternate, B must list A too. Without the return link, search engines ignore the annotation for that pair, so every version must link to every other version.
Related Tools
All SEO Tools →Free SEO Analyzer & Website Audit Tool
Comprehensive SEO analysis for any website. Check technical...
Free XML Sitemap Generator
Generate XML sitemaps for your website and submit to Google...
Meta Tag Analyzer & SEO Checker
Analyze and optimize meta title, description, and Open Graph...
PBKDF2 Key Derivation Generator
Derive keys from passwords with PBKDF2-HMAC-SHA1/256/512, ch...
SSH Key Generator & Fingerprint Tool
Generate Ed25519 or RSA SSH key pairs in your browser and ca...
X.509 Certificate & CSR Decoder
Decode PEM, DER and PKCS#7 certificates and CSRs in your bro...