Skip to content

Hreflang Checker

Check a page's hreflang tags for correctness. Try fetching a URL directly, or paste HTML source for a guaranteed-reliable check when cross-origin restrictions block a live fetch.

Category: online
Use Case: Multilingual SEO Audits, Hreflang Debugging, Pre-Launch Verification
Privacy: 100% browser-based

Recommended Settings

Pro Tips

  • Most websites block cross-origin fetch requests by default, so the direct URL fetch often won't work - pasting HTML source is the more reliable method
  • To get a page's HTML source, right-click the page and choose "View Page Source," then select all and copy
  • Every hreflang tag should point to a URL that itself contains a full, reciprocal set of hreflang tags back to all the other language versions
  • Check that each hreflang value uses a valid language code (and optional region), since a typo will cause search engines to silently ignore that tag

Most Popular

Most users paste HTML source directly, since it works reliably regardless of the target site's CORS policy

When to Use This Tool

Multilingual SEO Audits

Verify that a page's hreflang tags are set up correctly for international SEO.

Hreflang Debugging

Investigate why search engines might not be respecting your hreflang configuration.

Pre-Launch Verification

Double-check hreflang tags before launching a new localized page.

Competitor Analysis

See how a competitor has structured their multilingual hreflang setup.

How It Works

1

Attempt to fetch the given URL's HTML directly - this only succeeds if the target site allows cross-origin requests

2

If the fetch fails or if you paste HTML source instead, parse the provided HTML directly in your browser using the DOM parser

3

Search the parsed document for <link rel="alternate" hreflang="..."> tags and list every one found

100% Private

Files never leave your device. All processing happens locally in your browser.

Lightning Fast

Powered by Browser native DOMParser and Fetch API for optimal performance on modern browsers.

Open Source

Built with verified, open-source libraries. Fully transparent.

Frequently Asked Questions

Why does fetching the URL directly usually fail?

Most websites don't send the CORS headers required to allow another site's JavaScript to read their page content directly. This is a standard browser security restriction, not a bug in this tool.

How do I get a page's HTML source to paste?

Right-click anywhere on the page (outside of an input field) and select "View Page Source," or open browser developer tools and copy the outer HTML of the <html> element. Then paste that into the text box here.

Is my data sent to a server?

No. Parsing happens entirely locally in your browser using the native DOMParser API. If you use the URL fetch option, that request goes directly from your browser to the target site - not through this tool's own servers.

What should a correct hreflang setup look like?

Each language version of a page should include hreflang tags pointing to every other language version, including itself, ideally with an x-default fallback tag as well.

Does this check if the hreflang URLs actually work?

No. This tool only extracts and lists the hreflang tags found in the HTML - it doesn't verify that each linked URL is live or that it reciprocally links back correctly.