Skip to main content

Hreflang Validator & Generator

Check hreflang clusters, return links and codes, then generate tags

Input

Checks this page and up to 19 alternates it lists.

Validate sends these URLs to CodingTool servers. The servers request each public page (up to 20) and its robots.txt without cookies, so the target site receives those requests. Nothing is stored.

Findings

No results yet
Enter a public page URL and press Validate.

Cluster

No results yet
Rows are pages, columns are hreflang values. Each cell shows the target and its return-link status.

What this tool checks

Hreflang tells search engines which URL serves which language or region. This tool validates every hreflang value (ISO 639-1 language, optional ISO 15924 script, ISO 3166-1 alpha-2 region or x-default), then checks the cluster as a graph: each page should list itself and every alternate, and each alternate should link back. It also reports conflicting targets, duplicates, relative URLs and pages whose status, redirect, canonical, noindex or robots.txt rule can stop search engines from using the annotations.

Modes
  1. 1.Validate URL fetches one public page and then up to 19 alternates it lists, reading HTML link tags and the HTTP Link header.
  2. 2.Validate set checks pasted tags, Link headers or a sitemap with xhtml:link entries in your browser, or fetches a pasted list of up to 20 URLs.
  3. 3.Generate builds HTML tags, an HTTP Link header and an XML sitemap from the same language rows, with live validation.
Reading the results
  • •Errors break the cluster and usually stop search engines from using it: invalid codes, missing return links, missing self links and conflicting targets.
  • •Warnings are potential issues, such as redirects, canonical mismatches, noindex or Blocked by robots.txt.
  • •Notes are informational: a missing x-default or annotations from more than one method. Mixing methods is valid; it only adds maintenance.
  • •Unverified means the target page was not part of the check, so its return link could not be confirmed.
Privacy and limits

Pasted input and Generate mode never leave your browser. URL modes send the URLs to CodingTool servers, which fetch public pages without cookies, block private and internal addresses, limit redirects and response size, and keep nothing after responding. The target site receives these requests. Results reflect Static HTML and HTTP headers only; tags added later by JavaScript in the Rendered DOM are not read.

Frequently asked questions
Does Validate URL send data to a server?
Yes. Validate URL and pasted URL lists send the URLs to CodingTool servers, which fetch up to 20 public pages and their robots.txt without cookies. Private, internal and cloud metadata addresses are blocked, the target site receives the requests, and nothing is stored. Pasted tags, sitemaps and Generate mode run entirely in your browser.
Why is a missing return link an error?
Search engines only trust an hreflang pair when both pages confirm it. If page A lists page B but B does not link back to A, the annotation can be ignored, so the tool reports it as an error and shows the affected cell in the matrix.
Do I need an x-default entry?
No. x-default is optional and is shown as a note when missing. It is useful for a language selector page or as the fallback for visitors whose language or region does not match any listed alternate.

CodingTool is officially live on