Skip to main content
SEO DOST

Hreflang Tag Generator & Validator

Generate ISO 639-1 / ISO 3166-1 validated HTML <link>, HTTP Link Header, and XML Sitemap hreflang blocks for multilingual websites.

Generated Hreflang Code

Frequently Asked Questions

What does x-default do in hreflang?
x-default tells search engines which fallback URL to show when a visitor’s browser language does not match any of your explicit language versions.
Must hreflang tags be bidirectional (return tags)?
Yes. If your English page links to the German page via hreflang, the German page must also link back to the English page — otherwise Google ignores the annotation.
How do you add hreflang to PDFs or non-HTML files?
Serve an HTTP Link response header (Link: <https://...>; rel="alternate"; hreflang="en") from your web server; this generator outputs that exact format.