← All Tools

Hreflang Tag Generator — Multilingual & International SEO

Generate valid hreflang link tags for multilingual and multi-region pages, including x-default. Paste your language/region codes and URLs to get copy-ready tags.

Free, no sign-up — one of the SaaSQuickStart Content & SEO tools.

How it works

hreflang annotations tell Google that several URLs are the same page in different languages or regions, so it can serve the right version to each user and avoid treating them as duplicate content. The code is a language code (ISO 639-1, e.g. en), optionally with a region (ISO 3166-1, e.g. en-GB). Two rules matter most: the tags must be bidirectional (every page references every other, including itself), and you should include an x-default for users who don’t match any version. Everything runs locally in your browser.

Frequently asked questions

Does every page need to list all the others?

Yes. hreflang must be reciprocal: if page A points to page B, page B must point back to A. Every URL in the set should include the full list of alternates — including a self-referencing tag for its own locale.

What is x-default for?

x-default is the fallback shown to users whose language/region doesn’t match any of your specified versions — for example a language selector page or your main international site.

Should the code be en-US or en_US?

Use a hyphen: en-US. The language is lowercase (en) and the region is uppercase (US). Underscores are invalid in hreflang.

Can I put hreflang in the sitemap instead of the head?

Yes. Google supports hreflang via <link> tags in the <head>, an XML sitemap, or an HTTP header. Pick one method and apply it consistently — mixing them can cause conflicts.

All free tools · SaaSQuickStart