Free Hreflang Tag Generator

Add each language/region version and its URL

Place these in the <head> of every language version, and make sure each page links back to all the others (including itself).

Running a multilingual site in Singapore or across ASEAN? Getting hreflang, canonicals and content right across languages is where most sites slip. We handle international and multilingual SEO for Singapore brands — get a free audit.

Free hreflang tag generator

This free tool — built by a Singapore SEO agency — generates valid hreflang annotations so Google serves the right language or regional version of your page to the right searcher. It’s especially relevant in a multilingual market like Singapore, where the same content may exist in English, Chinese, Malay or Tamil. Everything runs in your browser.

What is hreflang and why does it matter?

hreflang is an annotation that tells Google which language and region each version of a page targets. Without it, Google may show the wrong version to a user — an English page to a Chinese-language searcher, or your Singapore page to a visitor in another market — hurting both relevance and rankings. It also prevents your own translated pages from being treated as duplicate content competing against each other.

Hreflang rules you must follow

  • It must be reciprocal. If page A points to page B as an alternate, page B must point back to page A. Missing return tags are the most common hreflang error.
  • Every version must reference itself as well as all the others.
  • Use correct codes: ISO 639-1 for language (en, zh, ms, ta) and, only if targeting a region, ISO 3166-1 for country (en-SG). Don’t use a country code as a language.
  • Add an x-default for users whose language doesn’t match any version.
  • Use absolute URLs and keep hreflang consistent with your canonical tags.

Where to put hreflang tags

You can implement hreflang in three places: in the <head> as <link> tags (what this tool generates), in your XML sitemap, or in HTTP headers for non-HTML files. Pick one method and apply it consistently — mixing methods or applying them inconsistently causes errors. For most WordPress and CMS sites, the head-tag or sitemap method is easiest.

Frequently asked questions

Do I need hreflang if my site is only in English?

No — hreflang is only needed when you have multiple language or regional versions of the same content. A single-language site doesn’t require it.

What’s the difference between zh and zh-SG?

zh targets Chinese speakers regardless of country; zh-SG targets Chinese speakers specifically in Singapore. Use the region suffix only when you genuinely have country-specific versions — otherwise the language code alone is safer.

Does hreflang replace canonical tags?

No — they work together. Each language version should have a self-referencing canonical, plus hreflang annotations pointing to all versions. Conflicting canonicals (e.g. all versions canonicalising to the English page) will break hreflang.

How do I check my hreflang is correct?

Use Google Search Console’s International Targeting report and third-party hreflang validators to catch missing return tags and invalid codes. Reciprocity errors are the most common and the most damaging.