SEO & Marketing

Hreflang Generator

List the addresses of a page in each language and get the hreflang tags for every one of them — as link tags, HTTP headers or sitemap entries.

Your pages

Tags

Versions
—
x-default
—
Problems
—

What hreflang is for

When the same page exists in several languages, hreflang tells Google which version to show to whom. Without it, a Bangla page and an English page about the same thing look like duplicates competing with each other; with it, each one is shown to the right audience.

The rules that trip people up

How to use the generator

  1. List one version per line — the code, a space, then the full address.
  2. Pick a format. Link tags go in the head; HTTP headers suit PDFs and other non-HTML files; the sitemap block keeps the whole set in one place.
  3. Copy the block and put the same one on every version of the page.

Which format to use

After you publish

Google re-crawls each version before it trusts the set, so give it a few weeks. The International Targeting report in Search Console lists hreflang errors, and "no return tags" is nearly always the problem — one version in the group is missing the block.

Frequently asked questions

Do I need hreflang on every page?

On every page that has more than one language version, yes — and the block has to list all the versions, including the page itself.

What is x-default?

The version shown when none of the listed languages match the visitor. It is usually your English page or a language-picker page.

Is it en-GB or en-UK?

en-GB. The language code is ISO 639-1 and the region is ISO 3166-1 alpha-2, where the United Kingdom is GB. Wrong codes are ignored entirely.