Skip to content

Hreflang Generator

Create hreflang tags and sitemap annotations for multilingual sites, with code validation and return-link checks.

AvailableBrowser + optional URL fetchFree · No sign-up

Hreflang Generator

Language versions

One row per version of the page. Language: ISO 639-1 (e.g. en, ur, ar). Region (optional): ISO 3166-1 country (e.g. GB, PK, US). Use x-default for the fallback page.

en · English

the URL is required.

en-GB · English · United Kingdom

the URL is required.

x-default · Fallback for all other languages

the URL is required.

Output

Put this same block in the <head> of every listed page

<!-- Add rows with a language and a full URL -->

Check return links on the live pages (optional)

hreflang only works when every version links to every other version — and to itself. OZVILO's server can download each URL above (up to 10) and check which annotations each page is missing.

hreflang helps search engines show the right language or regional URL to searchers. It doesn't redirect visitors and doesn't guarantee rankings in any country.

Pasted text and HTML are processed in your browser. Only when you use a URL mode does OZVILO's server download the public pages you enter (without cookies or logins); URLs and results aren't stored.

How to use the Hreflang Generator

  1. 1Add one row per language or regional version: language code, optional region and full URL.
  2. 2Add an x-default row for visitors whose language doesn't match.
  3. 3Fix any code or URL errors.
  4. 4Copy the same tag block into every listed page, or use the sitemap version; optionally check the live pages.

Examples

  • UK English

    Input
    Language en, region UK
    Result
    Error: the United Kingdom's code is GB (en-GB)
  • Cluster

    Input
    en, en-GB, ur-PK and x-default
    Result
    4 link tags to place on all three pages

Hreflang Generator features

  • Language (ISO 639-1, optional script) and region (ISO 3166-1) validation with helpful hints
  • x-default support and detection of duplicate codes and URLs
  • Output as HTML link tags, an XML sitemap with xhtml:link, or a preview table
  • Optional live check: fetches each page and lists missing return links
  • Copy and download every output

Frequently asked questions

What are return links?

Every page in a language set must link to all the other versions and to itself. If page A points to B but B doesn't point back, search engines may ignore the annotation. Place the same block on every listed page.

Does hreflang redirect users or boost rankings?

No. It helps search engines show the right language or regional URL in results. It doesn't redirect visitors and doesn't guarantee rankings in any country.

Should I use HTML tags or the sitemap?

Either works, and they have the same effect. Tags are simpler for small sites; sitemap annotations are easier to maintain for many pages. Don't maintain conflicting versions of both.