Skip to content

Hreflang and Canonical Checker

Check the hreflang and canonical setup of a multilingual page. The tool reads the canonical link and every hreflang alternate from the HTML and the HTTP Link header, validates the language and region codes, looks for x-default, a self reference and duplicates, then opens up to ten alternate pages to confirm that each answers 200 and links back.

Reset

Frequently asked questions

What are return links and why do they matter?

If page A lists page B as an alternate, page B must list page A as well. Google ignores hreflang annotations that are not confirmed from the other side, so a missing return link breaks the pair. The tool opens each alternate and checks that it links back to the page you entered.

Which language codes are valid?

A language code such as en or de, optionally followed by a script such as Hant and a two-letter region such as GB or US, or x-default. Common mistakes are en-UK instead of en-GB, jp instead of ja for Japanese, and region-only values. The tool checks the codes against the language, script and region names the runtime knows.

What is x-default for?

x-default names the page to show when no listed language matches the visitor, often a language picker or the English version. It is optional but recommended, so its absence is a warning.

Why does the canonical matter for hreflang?

hreflang should point to canonical URLs. If a page's canonical points to another URL, search engines treat that other URL as the real page and may ignore the hreflang annotations of this one. The tool warns when the canonical of the entered page or of an alternate points elsewhere.

Does the tool read hreflang from sitemaps?

No. It reads link elements in the HTML head and the HTTP Link header. If you declare hreflang in an XML sitemap instead, check the sitemap with a sitemap validator.

Why are only ten alternates checked?

Each alternate needs its own request, so the tool fetches at most ten to keep the check quick and light on the site. All alternates are still listed and validated for their codes and URLs, and the result says how many were not opened.

About OneClick Pro

OneClick Pro is a free collection of more than 150 web tools for everyday work: converting images and units, formatting and validating code, checking domains and SEO, and working with text, dates and numbers. Every tool runs without registration or subscription, and what you enter is only used to calculate your result and is never stored. Use it as a quick toolbox for one-off tasks, or bookmark the tools you rely on every day.