# hreflang Tag Generator: HTML, Sitemap, Header and Return Links

> Generate hreflang tags with x-default in Google's three formats and check them: ISO 639-1 languages, ISO 3166-1 regions, scripts like zh-Hant, duplicates, full URLs and missing…

Free tools · No account needed

# hreflang tag generator and return-link checker

hreflang tells Google which page to show to which language and region. Google ignores the tags when the code is wrong or when two pages do not point to each other. Type each version as a code and a URL to get the tags in all three formats Google reads, or paste the tags from several pages to find the missing return links. We built it for our own site, which runs in 30 languages.

-   HTML head, XML sitemap and HTTP header formats
-   Codes checked against Google's rules
-   Missing return links found across pages

What to do Generate tags Check return links

Language versions

One per line: the code, then the full URL. Example: en https://example.com/ and ko-KR https://example.com/ko/

x-default URL optionalUse the first URL

Optional. The page for visitors whose language is not listed, often the English page or a language picker.

Build the list from a URL pattern

URL pattern 

Write {lang} where the code goes, such as https://example.com/{lang}/pricing

Codes 

Separated by spaces or commas, such as en ko ja zh-Hant

 Lower-case the code in the URL

Fill the list

Load an example from our site

Pages to compare

For each page, type its URL and paste the hreflang tags it carries: the <head> from the page source, the sitemap lines or the Link header. If the URL is empty, the canonical link in the paste is used.

Add a page Check return links Load an example with mistakes

## hreflang tags

Copy

Format HTML <head> XML sitemap HTTP header

## What the tool read

| Code | Means | URL |
| --- | --- | --- |

[Google's rules](https://developers.google.com/search/docs/specialty/international/localized-versions)

## Return links

[Google's rules](https://developers.google.com/search/docs/specialty/international/localized-versions)

01 / HOW IT WORKS

## How to use hreflang Tag Generator and Checker

1.  01
    
    ### List each language version
    
    One per line: a code and the full URL, such as en https://example.com/ or ko-KR https://example.com/ko/ (you can also build the list from a URL pattern with {lang}).
    
2.  02
    
    ### Fix the codes and pick x-default
    
    The tool flags codes Google does not support (a country alone, en-UK, es-419, en\_US), repeated codes and relative URLs. Set x-default to the page for visitors whose language you do not list.
    
3.  03
    
    ### Copy one format and check the pages
    
    Copy the HTML tags into every version's <head>, or the sitemap or header form. After publishing, paste what each page carries into the return-link check.
    

02 / FAQ

## Questions

What happens if return links are missing?

Google says: "If two pages don't both point to each other, the tags will be ignored." Each language version must list itself and every other version, so the same set of tags goes on every page. The return-link check shows which page is missing which link (Google Search Central, read 20 November 2026).

Which language and region codes does Google accept?

Languages in ISO 639-1 (two letters, such as en, ko, ja), optionally followed by a region in ISO 3166-1 alpha-2 (en-GB, pt-BR) or a script in ISO 15924 (zh-Hant, zh-Hans-US). Google says a country code by itself is not valid, codes such as es-419 are not supported, and EU, UN or UK have no effect: the United Kingdom is GB. Upper or lower case does not matter.

Do I need x-default?

Google describes x-default as the value "used when no other language/region matches the user's browser setting". Its guide does not call it required, so the tool suggests it without marking it as an error. On our own site x-default points to the English page.

HTML tags, sitemap or HTTP header: which one?

Google calls the three methods equivalent and says using all three at once brings no benefit in Search. HTML tags are the easiest to check by viewing a page; a sitemap keeps the <head> light when you have many languages; the HTTP header is for files without HTML, such as PDFs. Pick one and keep it complete.

Do Naver and Bing use hreflang?

We could not find it in their own guides. Naver Search Advisor's webmaster guide and Bing's Webmaster Guidelines did not mention hreflang when we read them on 20 November 2026, so we make no claim either way. The rules in this tool are Google's.

Is it free? Is anything sent or stored?

It is free, with no account and no usage limit. Everything is calculated by your browser on your device; nothing you type is sent to our server or stored.

03 / RELATED

## Guides and more free tools

[**hreflang Tags: Lessons From a Site in 30 Languages (2026)** How hreflang works according to Google's own guide: the three ways to add it, x-default, valid language and region codes, and the return-link rule that silently breaks most setups. With a free generator and checker. _→_](/blog/hreflang-guide-30-languages) [**Open Graph Checklist: Fix Link Previews on 5 Platforms (2026)** Shared a link and got a bare URL with no image? Here are the og tags and image sizes Facebook, X, LinkedIn, KakaoTalk and Naver ask for in their own documentation, and a free checker that shows all five cards at once. _→_](/blog/link-preview-open-graph-checklist) [**Schema Markup for AI Search in 2026: What Still Works** Does schema help AI Overviews? What Google and Bing say, which rich results survive in 2026, what a shop should add first, and a free JSON-LD generator. _→_](/blog/schema-markup-ai-search-2026) [**Sitemap.xml Generator** Turn a URL list or numbered pattern into sitemap XML with optional lastmod dates. Download an index and separate files when the list exceeds the sitemap limits. _→_](/free-tools/sitemap-generator) [**Schema Markup Generator** Make JSON-LD for FAQ, Product, LocalBusiness, Organization, Video and Article pages, checked against Google's required fields. _→_](/free-tools/schema-markup-generator) [**AI Crawler robots.txt Generator** Choose which AI crawlers may read your site: allow ChatGPT, Claude and Perplexity search, block model training, and check your current robots.txt. _→_](/free-tools/ai-robots-txt-generator) [**All free tools** Calculators, checkers, SEO and AI search tools and image tools that run in your browser with no account, and AI tools for ad copy, hashtags, hooks, video prompts, answer blocks and FAQ questions that are free with an account: 2 runs per tool a day, then 1 credit a run. _→_](/free-tools)

### Studio tools

[**AI Video Ad Generator** Turn one product photo or a brief into a Reels, TikTok or Shorts video ad, from $0.32 for 8 seconds at 1080p.](/tools/create-video-ad) [**AI Product Detail Page Generator** Write and design a product detail page from your facts and photos, then export 780 px slices for Coupang or 860 px for SmartStore.](/tools/detail-page) [**All AI tools**](/tools)

04 / START HERE

## Translated pages need ads in the same language

The Cut Marketing site and studio run in 30 languages. Make product videos and images for each market from one product photo; the credit cost is shown before you generate.

[Make ads in Cutma→](https://app.cutmarketing.app/studio/create-video-ad?ui_locale=en&utm_source=free-tool&utm_medium=tool&utm_campaign=hreflang-tag-generator) [See pricing](/pricing)
