HTML, sitemap and HTTP header

Hreflang Tag Generator

Enter language codes and URLs; invalid codes like en-UK are corrected and missing x-default is flagged.

Runs in your browserNothing is uploaded

Input

One per line, e.g. en-GB https://example.co.uk/ — use x-default for the fallback page.

Try an example

Output

Fill in the form or pick an example to generate the output.

Published? Check the live pages with the Hreflang Reciprocal Checker
Free to use No account required Runs in your browser

Inspect hreflang annotations for language versions

Codes are validated against ISO language and region lists, common mistakes such as en-UK or jp are corrected, and duplicates, relative URLs and a missing x-default are flagged.

Interpret the result

Add the identical set of annotations to every page in the group, then confirm on the live site that each page links back to all the others.

Prioritize fixes

The generator cannot see your pages; annotations only work if every listed URL returns 200, is indexable and carries the same set.

How to interpret hreflang annotations for language versions

Codes are validated against ISO language and region lists, common mistakes such as en-UK or jp are corrected, and duplicates, relative URLs and a missing x-default are flagged.

Limits of this check

The generator cannot see your pages; annotations only work if every listed URL returns 200, is indexable and carries the same set.

Frequently asked questions

What does this tool check?

Codes are validated against ISO language and region lists, common mistakes such as en-UK or jp are corrected, and duplicates, relative URLs and a missing x-default are flagged.

How should I use the result?

Add the identical set of annotations to every page in the group, then confirm on the live site that each page links back to all the others.

What are the limits?

The generator cannot see your pages; annotations only work if every listed URL returns 200, is indexable and carries the same set.

Related URL tools and guides