Canonical URL checker. The one truth.
Paste your page HTML in the textarea. The right panel extracts every <link rel="canonical"> tag, validates absolute / HTTPS / non-duplicate, and outputs the canonical URL plus pass/warn/fail line for each rule.
Tip: in Chrome DevTools → Elements panel → right-click <html> → Edit as HTML → copy the entire string.
Sources used by this checker
- Google canonicalization spec
- RFC 6596, The Canonical Link Relation
- Self-referential canonical is the safest default per Google's recommendation.
Privacy: HTML parsed in-browser only.
How to use the Canonical URL Checker
This checker reads HTML you paste, finds every link tag with rel=canonical, and tests the first one it finds. It flags a missing or duplicated tag, an empty or relative address, plain http, a # fragment and UTM tracking parameters. It is for SEOs and developers who want to confirm a page declares one clean canonical URL before or after a release.
Step by step
-
Copy the page HTML
Open the page and copy its source. View source works for most sites. If the canonical tag is added by JavaScript, copy the rendered page from your browser's developer tools instead, as the tip under the box describes: Elements panel, right-click the html element, Edit as HTML, then copy everything.
-
Paste it into the box
Replace the sample in Paste page HTML with your own code. The sample is a short page whose canonical is https://example.com/blog/canonical-explained/, so the panel shows a clean result before you paste.
-
Read the panel
The canonical found panel shows the URL the checker extracted, a one line summary and one line per rule. It refreshes on every keystroke, so you can edit the pasted HTML in place and watch a failing line clear.
-
Fix the source and check again
Change the tag in your site's template or SEO plugin, publish, copy the new HTML and paste it again to confirm every line passes.
Reading the result
- The summary reads All 5 checks pass when everything is clean, as it does for the sample. Otherwise it counts fails, warnings and passes. A relative href such as /blog/ gives 1 fail · 0 warn · 3 pass, because the HTTPS line is skipped when the address is not absolute.
- A red cross is a fail: no canonical tag, more than one canonical tag, an empty href, or an address that does not start with http:// or https://. Fix these first.
- An amber triangle is a warning: the canonical uses http://, contains a # fragment, or carries utm_ parameters. The tag still works, but it points search engines at a weaker version of the URL.
- When a page has several canonical tags, the URL shown is the first one in the code, and every rule after the count is tested against that one only.
Tips and common mistakes
- The checker does not know which page the HTML came from. Compare the URL in the panel with the page's real address yourself; on most pages they should match exactly, trailing slash included.
- Only the HTML you paste is checked. A canonical sent in an HTTP Link header, or one a script adds after the page loads, will not appear unless it is in the code you pasted.
- Canonical tags anywhere in the paste count, including the body. Pasting two pages by accident shows up as a duplicate fail.
- Strip tracking parameters such as utm_source from the canonical. Keep a query parameter only when it really changes the content and that version should be indexed on its own.
Privacy and limits
The HTML is parsed by your browser's built-in parser on this page. Nothing is uploaded or saved, and the checker does not fetch the canonical URL or anything else referenced in the code you paste.
Six questions users ask.
Why does my page need a canonical tag?
When the same content lives at multiple URLs, Google has to pick one as the indexed version. Without a canonical tag, Google guesses, and sometimes guesses wrong. The canonical tag tells Google which URL is the master version, consolidating link equity and ranking signals.
Should the canonical match the current URL?
Almost always, yes. Self-referential canonical tags are the safest pattern. The exception: pagination, faceted-navigation pages, and printable versions point their canonical to the parent.
Why is absolute URL required?
Relative canonicals technically work but break in edge cases, when the page renders on a different domain (staging, AMP cache, syndicated), the relative URL resolves wrong. Google's docs say always use absolute.
Can I have two canonical tags?
No. Multiple rel=canonical declarations on a single page is a known SEO bug, Google's parser handles it inconsistently. Pick one source of truth.
Should canonical use https://?
Yes. Even on a fully-HTTPS site, an http:// canonical splits indexing signal between the two protocols.
Does this tool log my HTML?
No. The form runs entirely in JavaScript on your device. Nothing is sent to Digital Heroes servers.
Link & navigation cluster.
Hreflang Checker
Locale alternates audit.
Twitter Card Validator
Twitter:* meta tag check.
Internal Link Counter
Same-origin link audit.
Anchor Text Analyzer
Anchor ratio + categorisation.
Structured Data Validator
JSON-LD parser + schema check.
SEO service
Technical SEO + canonical strategy.
Published · Last updated .