Sketchweb

Hreflang Generator

Turn a list of localized pages into alternate language tags. The hreflang generator checks URL and code formatting and can help you spot a missing self-reference.

List the alternate pages

Add one language code and absolute URL per line, separated by |. Include x-default if you have a fallback.

Add a page URL to check that the set includes its self-reference.

How to use it

  1. List the language or regional versions of one page.
  2. Generate the tags and add the full set to the head of each listed page.

Up to 100 alternate links. The tool checks format and optional self-reference from the supplied URLs.

Reading the results

List all versions of the same page

Enter a language code and an absolute URL on each line. For example, use en for a general English guide and en-GB for the British English version. If you have a fallback for visitors whose language or region is outside the configured set, add its URL with x-default. Add the current page URL if you want to check that it appears in the list.

Publish the full set on each localized page

Copy the alternate tags into the HTML head of every listed version, including a reference to the page itself. The destination should be the corresponding localized page. When the tags are live, test the published URLs to see which destinations respond and which send a return reference. Update the set whenever a localized route moves.

Common questions

How many alternate URLs can I add?

The generator accepts up to 100 alternate links at once.

Does generation confirm the tags are live?

It formats and checks the entries you supply. Use the Hreflang Checker after publishing to inspect actual declarations and return links.

Related tools and guides