Yoryantra
← Back to Tools

Hreflang Validator

Validate hreflang tags for international SEO. Check language codes, region codes, x-default, duplicate hreflang values, absolute URLs, self-reference, and common hreflang mistakes.

Paste HTML link tags, sitemap XML with alternate links, or simple lines like en-us https://example.com/us/.

Options

Checks hreflang values, language and region shape, x-default, duplicate targets, absolute URLs, and self-reference when a current page URL is provided.

Output

Hreflang validation output will appear here.
Hreflang validation happens directly in your browser. Your tags and URLs are not uploaded to a server.

Checking Hreflang Tags for International SEO

Hreflang tags help search engines understand alternate language or regional versions of a page. They are useful for international sites, country-specific pages, multilingual content, and pages that serve similar content to different audiences.

This Hreflang Validator checks pasted alternate tags and sitemap entries for common issues such as missing x-default, duplicate hreflang values, invalid language or region shape, relative URLs, and missing self-reference.

Validating Hreflang Markup

  1. Paste hreflang link tags, sitemap XML, or simple hreflang lines.
  2. Choose the input format and checking style.
  3. Add the current page URL if you want self-reference checking.
  4. Run the validator and review duplicate, missing, or invalid entries.
  5. Fix the markup before publishing or submitting sitemap changes.

Common Hreflang Validator Use Cases

  • Checking language and region codes before publishing hreflang tags.
  • Finding duplicate hreflang values across alternate URLs.
  • Checking whether x-default is present for language selector pages.
  • Finding relative URLs that should be absolute URLs.
  • Reviewing self-referencing hreflang on localized pages.
  • Validating copied alternate links from a template or CMS.

Example Hreflang Tags

<link rel="alternate" hreflang="en" href="https://example.com/" />
<link rel="alternate" hreflang="en-us" href="https://example.com/us/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/" />

Hreflang Needs a Complete Cluster

Hreflang works best when alternate pages reference each other consistently. A single tag on one page is usually not enough if the alternate version does not point back.

This browser tool can check the tags you paste, but it does not crawl every alternate URL to verify live reciprocal tags. For large sites, combine this with crawling, sitemap validation, and Search Console review.

Frequently Asked Questions

What does a Hreflang Validator do?

It checks hreflang tags for common international SEO issues such as invalid codes, duplicate values, missing URLs, and missing x-default.

What is x-default?

x-default points to a fallback page, often a language selector or default global version.

Should hreflang URLs be absolute?

Yes. Absolute URLs are the safest and clearest choice for hreflang annotations.

Does this check reciprocal hreflang automatically?

It checks the tags you paste, but it does not crawl alternate pages automatically to confirm live reciprocal tags.

Is anything uploaded when I validate hreflang tags?

No. Hreflang validation happens directly in your browser.