01 Example 1
Self-referencing canonical
- It's worth doing even when you're confident there's no duplicate, since tracking parameters or capitalization differences can create one later without warning.

Your canonical tag will appear here.
How to use: Place this tag in the <head> section of your HTML page.
The basics

A canonical tag is a small piece of code placed in a page's section, written as rel="canonical", that tells search engines which URL should be treated as the definitive version of a page.
A canonical tag generator handles the code for you. Enter the URL, and it returns a properly formatted tag, so you're not writing it by hand on every page and hoping you didn't mistype something.
We built this tool because the mistakes here tend to be small and easy to overlook: a relative path used where an absolute URL was needed, a trailing slash that doesn't match the live page, or a canonical still pointing at an address from before your last redesign. Any one of these can quietly tell Google to skip the page you actually wanted ranked, and Search Console won't necessarily warn you about it right away.
How it works
Use the full address starting with https://, not a shortened link or a relative path.
If this page is the one you want ranked, it should reference itself. If it's a duplicate, like a filtered or sorted variation, it points the canonical back to the main page instead.
www vs. non-www, http vs. https- these need to match exactly how the page actually loads, or the tag won't do its job.
The tool builds the tag for you, ready to copy.
The generator flags relative URLs, mismatched trailing slashes, and other issues that are easy to miss when you're doing this by hand.
Drop it into the , or into your server's response header for non-HTML files.
For every duplicate URL that should point back to the same master page.
Examples
01 Example 1

02 Example 2

03 Example 3

04 Example 4

Features
Enter a URL and get a working tag back right away, no formatting it yourself.
Point a page to itself in a single click, something Google's own John Mueller has recommended even for pages that don't appear to have any duplicates.
The tool keeps your protocol and domain consistent, so you're not stuck double-checking http versus https every time.
Point a canonical at a URL on a different domain when you're dealing with syndicated or republished content.
Flags relative URLs and trailing-slash mismatches before you publish, not after you notice a dip in rankings.
Rext AI provides you with as many tags as you need, for free and no account required.
Not directly. It's a signal that tells Google which URL you'd like treated as the main version when duplicates exist. Google usually goes along with it, but it can still choose differently if other signals disagree
Paste your page's URL into Rext AI's canonical tag generator, decide whether it's the main version or should point elsewhere, and hit generate. You'll get a tag that's ready to paste in.
If you're running Yoast SEO or Rank Math, this is already handled for you. Both plugins add a self-referencing canonical to every page automatically, and you can override it manually from that page's SEO settings whenever you need to point somewhere else. Without one of those plugins, you'll need to add the tag directly into your theme's header file.
Not reliably. It's a suggestion, not a command, so Google can still index the version you didn't choose if its own signals disagree. If you genuinely need a page out of the index, that's a job for noindex, not canonica
Yes, even pages you're sure have no duplicates. Tracking parameters, capitalization, and random URL variations tend to show up eventually, and a self-referencing tag heads that off before it becomes a problem.
Yes. This comes up with syndicated content, guest posts, and press pickups, where the republished copy's canonical points back to wherever the piece originally ran.
Keep going
Keep every localized page self-referencing while its hreflang tags point to the other language versions.
Try it freeBuild a sitemap that lists your canonical URLs, backing up the version you want indexed.
Try it freeMake sure crawlers can actually reach the canonical URL you've pointed them toward.
Try it freeJoin 500+ teams using Rext AI to publish high-quality, Human-like content at scale.
Try Rext AI