Canonical Tag Validator
Paste a page’s HTML source and, optionally, its URL. The validator finds canonical tags in the <head>, flags common mistakes, resolves relative URLs and tells you whether the canonical points to the page itself. Your HTML is treated as text and never run.
1. HTML source
Treated as text2. Report
Nothing fetchedErrors
Warnings
Passed
Notes
Only the pasted HTML is checked. No page, canonical URL or search engine is contacted.
About Canonical Tag Validator
Canonical Tag Validator reads the HTML source you paste and checks its rel="canonical" tags. It reports a missing canonical, multiple or empty canonicals, relative, malformed or fragment URLs, unsupported protocols and tags placed in the body, and — when you enter the page URL — whether the canonical is self-referencing.
Conflicting or broken canonical tags can split ranking signals between duplicate URLs or point search engines at the wrong page. Checking the source catches these mistakes quickly.
Step by step
- Copy the page’s HTML source (for example with View Source) and paste it.
- Optionally enter the page URL to resolve relative URLs and check self-reference.
- Press Validate.
- Review errors, warnings, passed checks and notes.
- Copy or download the full report.
What it offers
- Missing, multiple and empty canonical detection
- Relative, protocol-relative and malformed URL checks
- Unsupported protocols such as javascript: and ftp:
- Fragment (#) URLs flagged
- Canonicals pushed into the <body> detected, as browsers parse them
- Self-referencing check with trailing-slash and http/https hints
Tips for best results
- Use exactly one absolute https:// canonical in the <head>.
- Place the canonical before any element that could end the <head> early.
- Point duplicates to the version you want to rank, and make that version self-referencing.
- Keep canonicals consistent with redirects, sitemaps and internal links.
Why people use it
Thorough
Covers the common canonical mistakes.
Accurate
Parses HTML the way browsers do.
Safe
Pasted HTML is never run.
Private
No URL is fetched.
Common questions
This runs entirely in your browser
No file or text you enter here is uploaded. Encoding and decoding happen on your device using native browser APIs — close the tab and nothing remains on a server.