What is a canonical checker?
A canonical checker reads a page's HTML and tells you what its canonical tag says. The canonical tag is a single line in the head of a page — a link tag with rel equals canonical and an href holding an address — and it tells a search engine which address is the real one for this page. When two pages show the same content, the canonical tag says which of them counts, so the search engine does not split the ranking between copies.
This checker answers three questions about that tag. First, what address does it point to — the canonical URL itself. Second, is the address absolute, starting with https://, or relative, starting with a slash. Third, does the address match the page you are checking, or does it point somewhere else. Paste the page's HTML, type the page's address, and the answers appear live, as you type.
The check runs entirely in your browser. The HTML you paste never leaves your device, nothing is sent to a server, and nothing is stored. That matters, because the pages people check are often their own unpublished work — a draft, a staging page, a redesign — and the HTML of a draft should stay private.
How a canonical checker works
The checker reads the HTML you paste and looks for a link tag whose rel attribute is canonical. It searches the text with a pattern that matches the tag however it is written — with single quotes or double quotes, with the href before the rel or after it, with extra spaces or attributes in between. When it finds the tag, it reads the href attribute from it, and that address is the canonical URL.
If no tag matches, the checker says so plainly: No canonical tag found. That is a result, not an error — many pages have no canonical tag, and knowing that is the point of the check. If a tag is found, the checker runs two more tests on the address. The first asks whether it starts with http:// or https://, which makes it absolute. The second asks whether it is exactly the same as the page address you typed, character for character.
The three answers cover the three things that go wrong with canonical tags. A missing tag means the search engine picks the canonical address itself. A relative address means the tag may not work at all. And an address that points to a different page means the search engine may treat this page as a copy of that other page. A HTML formatter can tidy the same HTML before you paste it in, if it is hard to read.
The canonical tag, explained
The canonical tag is one line: a link tag in the head, with rel set to canonical and href set to an address. The default page on this checker shows it exactly: a link tag with rel canonical and href https://example.com/page, sitting in the head next to the title. That one line is the whole mechanism. Everything else — the ranking, the duplicate handling, the choice of which page counts — follows from it.
The tag exists because the web makes copies. The same page can appear at two addresses: with and without www, with and without a trailing slash, with a tracking code on the end, or on a print version of the page. To a search engine, those are different pages with the same content, and it has to pick one. The canonical tag is the site owner telling it which one to pick, instead of leaving the choice to a guess.
The rule for the tag is simple: a page's canonical address should be its own address, in full. A page at https://example.com/page should point at https://example.com/page. A page that points at another page is saying it is a copy of that page, and the search engine will believe it. A meta tag generator writes the title and description tags that sit next to the canonical tag in the head.
A worked example: three pages, three answers
Take the default page on this checker. The HTML holds a canonical tag pointing at https://example.com/page, and the page address typed in is https://example.com/page. The checker reports the canonical URL as https://example.com/page, says the address is absolute with Yes, and says it matches this page with Yes. All three answers are the ones a correct page should give.
Now paste a page with no canonical tag at all — the same page with the link line removed. The checker reports No canonical tag found, and both follow-up answers become No: with no tag, there is no address to test for absolute or matching. That is the honest result for a page that leaves the choice to the search engine.
Now paste a page whose canonical tag points at /page, a relative address, while the page address is still https://example.com/page. The checker reports the canonical URL as /page, says it is absolute with No, and says it matches with No. The tag exists, but it is relative, and a relative canonical is the most common canonical mistake on the web. A robots.txt generator controls which pages the search engine is allowed to visit, which is the other half of keeping copies out of search.
Why canonical tags matter for every site
Canonical tags matter because duplicates are everywhere, and a search engine that finds the same content at two addresses has to choose. Without a canonical tag, it chooses by its own rules — and its choice may be the print version, the version with the tracking code, or the version on the wrong domain. With a canonical tag, the choice is yours, and the ranking goes to the page you want it to go to.
They matter just as much for keeping a site's authority in one place. Links to a page split across two addresses split the page's strength in half. A canonical tag tells the search engine to count those links toward one address, so the page keeps the full value of every link it earns. A page that lets its copies float free gives away half its ranking for nothing.
They also matter for the result people see. A search result that points at the clean address — https://example.com/page, not https://example.com/page?ref=newsletter — looks trustworthy, and people click it. A result that points at a messy address looks like a mistake. The canonical tag is how the clean address wins. A sitemap generator lists the clean addresses the search engine should visit, which works hand in hand with the tag.
Canonical checker vs viewing the page source
Viewing the page source shows the same tag, and many developers check it that way. The problem is not finding the tag but judging it: the source shows the line, but it does not say whether the address is absolute, whether it matches the page, or whether there is a second canonical tag hiding further down the head. A human reading source has to check all three by eye, and eyes miss things.
This checker answers all three at once, live, as you paste. It finds the tag however it is written, reads the address, and tests it against the page address you typed. A relative address is flagged, a mismatch is flagged, and a missing tag is stated plainly instead of leaving you to search the source for a line that is not there.
Viewing the source still has a place: it shows the whole head, the order of the tags, and anything unusual the checker does not look for. But for the three questions that decide whether a canonical tag works — is it there, is it absolute, does it match — the checker is faster and surer. The same HTML can be tidied in a HTML formatter if the source is hard to read.
Common mistakes with canonical tags
The most common mistake is no canonical tag at all. A page with no tag leaves the choice to the search engine, and the search engine may pick the wrong copy. Every page deserves a canonical tag, pointing at its own address, even if the page has no duplicates today — duplicates appear later, when a tracking code or a print version is added, and the tag is already there to catch them.
The second mistake is a relative canonical: href equals /page instead of href equals https://example.com/page. Search engines expect absolute addresses in canonical tags, and a relative one may be ignored. Always write the full address, starting with https://. The third mistake is a canonical that points at a different page — usually a tag copied from another page and never updated. That page is telling the search engine it is a copy, and the search engine will believe it.
The fourth mistake is a canonical that points at a page that redirects, or at a page that does not exist. A canonical should point at a live page with a 200 status, not at a redirect chain or a dead end. And the fifth mistake is two canonical tags in one head: the search engine reads the first and ignores the second, so the second is a lie waiting to confuse the next person who reads the source. One tag, one address, the page's own.
How to use this canonical checker
First, get the page's HTML. Open the page in your browser, view the page source, and copy the whole head section — or the whole page, if you prefer. Paste it into the box on this page. The sample HTML already in the box shows the shape: a head with a title and a canonical tag, and a body with two short paragraphs.
Then type the page's full address, starting with https://, into the page URL box. The answers update live, as you type: the canonical URL the tag points to, whether it is absolute, and whether it matches the page you typed. If the page has no tag, the checker says so plainly.
Check the three answers against the rule: the tag should be there, the address should be absolute, and the address should be the page's own. If all three are right, the canonical tag is doing its job. If any one is wrong, fix the tag in the page's head and check again. If the page also needs its title and description tags, a meta tag generator writes those, and an SSL checker can confirm the https address itself is valid.