Three Output Formats
Get the same set as HTML link tags, XML sitemap entries, or an HTTP Link header for non-HTML files like PDFs.
Build correct hreflang tags for every language and region version of your pages. Copy them as HTML link tags, XML sitemap entries, or an HTTP header. Free and fully in your browser.
Enter the language code, an optional region code, and the full URL for that page. Add one row for every language or region you target.
Turn on x-default and point it at the page you want shown to visitors whose language you do not target, usually your main or English version.
Pick HTML link tags, XML sitemap, or HTTP header, then copy the output into your page head, your sitemap, or your server config.
When the same content exists in more than one language, or for more than one country, search engines need a clear signal about which version belongs to which audience. Without it, the wrong page can rank in the wrong market, or your own versions can compete against each other.
Hreflang annotations solve this. They map each URL to a language and an optional region, and they tell search engines to treat the set as one piece of content with several local versions. Get the codes and the reciprocal links right, and the correct page shows up for each searcher.
This generator builds that set for you in the format you need, and flags the mistakes that quietly break international targeting, like duplicate pairs, relative URLs, or a missing self-reference.
Get the same set as HTML link tags, XML sitemap entries, or an HTTP Link header for non-HTML files like PDFs.
Catches the common mistakes: invalid codes, duplicate language and region pairs, relative URLs, and a missing x-default.
Target a language on its own, or a language in a specific country, using standard codes with type-ahead suggestions.
Add an x-default fallback in one click so search engines know which version to show everyone else.
Add as many language and region rows as your site needs. There is no cap and no signup.
Everything runs in your browser. Your URLs are never uploaded, logged, or stored on a server.
More SEO tools you might find useful.
Common questions about hreflang tags and international SEO.