Try the live tool: Open Check and Generate hreflang HTML and XML Sitemaps →
What this tool does
Create hreflang link tags, inspect existing HTML and test reciprocal annotations across user-supplied language pages or XML sitemap entries.
1. Enter the language alternatives
Use one language | URL per line, for example en | https://example.com/en/ and ur-PK | https://example.com/ur/. Add x-default only if your site has a suitable fallback page. Use real canonical URLs.
2. Generate HTML or XML
Choose HTML link tags for page head markup or XML sitemap for sitemap annotations. Copy or download the generated result. For XML, a distinct x-default fallback URL also gets its own sitemap URL entry. Send generated XML to Sitemap Checker transfers it locally.
3. Check HTML and reciprocal links
Paste one page head to inspect its tags. For reciprocity, supply a JSON array of objects with url and html for each language page. The tool checks return links only between supplied pages.
4. Validate XML sitemap annotations
Paste the generated or existing XML sitemap and run Validate hreflang sitemap. Review duplicate language codes, missing self-links and missing return annotations.
Practical example
For English and Urdu pages, include en, ur-PK and optionally x-default. Each supplied page should link to its own URL and the other language version.
Limits and responsible use
The checker never fetches URLs, cannot prove reciprocal links on unsupplied pages and does not guarantee Google indexing, language selection or canonical decisions. It supports a practical language-script-region subset and XML urlset annotations.
Keep the original markup for comparison. Review facts against the real page, and use the dated Google feature catalogue or official Google Search Central documentation where relevant. A local check is not a search-ranking or rich-result guarantee.
Authoritative references
Frequently asked questions
Answers are educational. FAQ markup does not guarantee Google FAQ rich results.
Does this tool visit the other language pages?
No. Reciprocal links are checked only between the page HTML or XML sitemap entries you provide.
Is x-default mandatory?
No. It is an optional annotation for a fallback or language-selection page.
Does correct hreflang guarantee Google will show the chosen language?
No. Search engines make their own canonical and language-serving decisions.



