All tools
SEO Tools
Ads Tools
Link Tools
Social Tools
Text & Content Tools
Utilities
Finance Calculators
Thai Business
Image & Media Tools
Numerology & Fortune
Home & Living
Education
Health

Hreflang Tag Generator for Multilingual Websites

Build a complete, consistent set of hreflang tags for every language version of a page. Add each language, an optional region and its URL, mark one x-default fallback, then copy ready-to-paste HTML link tags or the XML sitemap variant. Duplicate language-region pairs and relative URLs are flagged as you type. Free for SEOs and marketers running Thai-English or any multilingual site — everything runs in your browser.

Language versions of your page

Use plain "th" when the page targets all Thai speakers; add a region (th-TH) only when it targets one specific country.

Mark one row as x-default — the fallback page for visitors whose language matches none of the versions.

Your hreflang tags will appear here

Add at least 2 language versions with absolute URLs

How to use

  1. Add a row for each language version of the page and pick its language code (or enter a custom ISO 639-1 code).
  2. Optionally add a 2-letter region code (e.g. TH) and paste the absolute URL of that version.
  3. Tick x-default on the one row that should serve as the fallback for unmatched languages.
  4. Fix any warnings — duplicate language-region pairs and relative URLs are flagged automatically.
  5. Copy the HTML tag block, or switch to the XML sitemap tab for the xhtml:link version.

Features

  • Two ready-to-paste outputs: HTML link tags and XML sitemap xhtml:link entries
  • Common language presets (th, en, zh, ja, ko, de, fr, es) plus custom ISO 639-1 codes
  • Automatic normalization — lowercase language, uppercase region (th-TH)
  • Validates duplicate language-region pairs, relative URLs and enforces a single x-default
  • Thai and other non-ASCII URLs are percent-encoded, with a readable form shown as a comment
  • 100% in-browser — nothing is uploaded to a server

Frequently asked questions

What do hreflang tags do?
They tell search engines which language and regional versions of a page exist, so users are shown the right version in search results. Without them, Google may show your English page to Thai users or treat translations as duplicate content.
Should I use th or th-TH?
Use plain th when the page targets all Thai speakers everywhere. Use th-TH only when the content is specific to Thailand — for example prices in baht or Thailand-only shipping. A region code without a language code is invalid.
What is x-default and do I need it?
x-default marks the fallback page shown to users whose language matches none of your versions — typically your global homepage or a language selector. It is optional but recommended, and there must be at most one per set.
Why must every page repeat the same set of tags?
Hreflang only works with return links: page A must reference page B and page B must reference page A with the identical set. If one side is missing, search engines ignore the whole group — so paste the same block into every URL listed.
Should I use the HTML tags or the XML sitemap version?
Pick one method and stay consistent. HTML link tags in the head are easiest for small sites; the XML sitemap variant keeps templates clean and scales better for large sites with many languages.