Converter Web ToolsConverter WebTools

Hreflang Tag Generator

Create a Hreflang Generator in your browser, free and instantly.

Add a language (or language-region) code and the matching page URL for each version.

Use codes like en, en-US, fr or es-MX. Every page in the set should list all versions (including itself) and ideally the same x-default. Place the tags in the <head> of each page. Generated in your browser.

About hreflang tags

This tool generates hreflang link tags for multilingual and multi-regional websites, telling search engines which language and region each version of a page targets. Add your language/region URLs and copy the ready-to-paste tags, including an x-default fallback. It runs in your browser.

How Hreflang Generator works

How to use it

  1. Add a language or language-region code and the matching URL for each version.
  2. Optionally set an x-default URL for users who match none.
  3. Copy the link tags into the <head> of every page in the set.

How hreflang works

hreflang tells Google that pages are alternates of each other in different languages or regions, so the right version is shown to the right user and the pages are not treated as duplicates. Codes follow ISO formats like en, en-US or es-MX.

Important rules

hreflang must be reciprocal: every page in the group should list all versions, including itself, and ideally point to the same x-default. Mismatched or one-way tags are a common cause of errors.

Common uses

  • Set up a multilingual website
  • Target different countries
  • Avoid duplicate-content issues across regions
  • Add an x-default fallback
  • Generate hreflang for many languages
  • Fix international SEO errors
  • Map language-region URLs
  • Prepare tags for a global site

Frequently asked questions

What is hreflang?
A tag that tells search engines the language and region a page targets.
What code format do I use?
ISO codes like en, en-US, fr or es-MX.
What is x-default?
The fallback version shown to users who match no specific language or region.
Must tags be reciprocal?
Yes — each page should reference all versions including itself.
Where do the tags go?
In the &lt;head&gt; of every page in the set.
Are my inputs uploaded?
No — tags are generated in your browser.
Can I use it for regions only?
Yes — use language-region codes such as en-GB and en-US.
Is it free?
Yes — completely free with no sign-up.