bookmarklet.one

Check Hreflang Tags Bookmarklet

Free hreflang checker bookmarklet: lists every hreflang tag on the page and flags invalid codes, duplicates, missing x-default and self-references.

Check Hreflang Tags
← Drag this button to your bookmarks bar.Click it here to try it on this page first.

On a phone? Use Copy code, then save it as a bookmark's URL — step-by-step guide.

SEOUpdated 2026-11-27Free · No extension · Runs locally

Hreflang is one of the easiest things in international SEO to break and one of the hardest to eyeball. This bookmarklet pulls every <link rel="alternate" hreflang> tag from the current page into a table and checks each one: is the language-region code valid, is it duplicated, is the URL absolute, and which entry points back to this page?

Above the table you get page-level checks: whether an x-default exists, whether the page references itself (Google requires that), and whether the <html lang> attribute matches one of the declared languages. Common mistakes like en-UK (it should be en-GB) or underscores instead of hyphens get called out by name.

It is useful for checking a sample of pages after a site launches in a new market, or for confirming a developer's fix without crawling the whole site. A Copy button exports the list as tab-separated text.

What it does

  • Table of every hreflang code and URL found in the page's link tags
  • Validates codes against the language(-script)(-region) format and flags en-UK and underscore mistakes
  • Flags duplicate codes, relative URLs and marks the entry that points to this page
  • Page checks: x-default present, self-reference present, <html lang> value
  • Copy button exports code and URL pairs as tab-separated text

How to install the Check Hreflang Tags bookmarklet

  1. Show your bookmarks bar. Press Ctrl+Shift+B on Windows/Linux or Cmd+Shift+B on a Mac (Chrome, Edge, Brave, Firefox). In Safari choose View › Show Favorites Bar.
  2. Drag the blue button above onto the bar. That's it — the bookmark now holds the code.
  3. Open any website and click the bookmark to run it on that page. Click it again to close it.

Can't drag (phone, tablet, locked-down browser)? Copy the code below, create any bookmark, then edit it and paste the code as its URL. See how to add a bookmarklet in every browser.

How to use it

  1. Open a page from a multilingual or multi-regional site.
  2. Click the bookmarklet to see the summary checks and the full hreflang table.
  3. Open one or two alternate URLs and run the bookmarklet there to confirm they link back (return tags).
  4. Use Copy list to paste the set into a spreadsheet for comparison.

What this can and cannot verify

Hreflang only works when it is reciprocal: if the English page lists the German page, the German page must list the English page. A single page cannot prove that, so spot-check alternates by running the bookmarklet on them. Hreflang can also be declared in HTTP headers or XML sitemaps; if the panel shows nothing but you expect annotations, check those places.

Language codes are ISO 639-1 (en, de, es) and regions are ISO 3166-1 alpha-2 (US, GB, MX). A region alone, like hreflang="us", is invalid: "us" is not a language.

Bookmarklet code

This is the exact code inside the button above (7,895 characters). It runs only in your browser and sends nothing to us. Paste it into the Bookmarklet Decoder to read it formatted.

Frequently asked questions

Do I need x-default?

It is optional but recommended. It tells search engines which URL to show users whose language or region does not match any of your versions, often a language picker or the global English page.

Is hreflang case-sensitive?

No. en-us and en-US are treated the same, but the conventional form is a lowercase language and an uppercase region.

Why does it say there is no self-reference?

None of the hreflang URLs equals the current URL or its canonical. Each language version should include itself in its own hreflang set.

Related bookmarklets

Free canonical tag checker bookmarklet: shows the rel=canonical URL, flags duplicates, relative or cross-domain…

Free SEO meta tag checker bookmarklet: title, meta description, H1, canonical, robots, hreflang, viewport and Open Graph…

Free XML sitemap checker bookmarklet: finds sitemaps via robots.txt and common paths, counts URLs, reads sitemap indexes…

Free Open Graph checker bookmarklet: lists all og: tags, previews the share card, flags missing og:image or og:url and…