Rankite
ServicesResultsToolsTeamAboutBlogCareersContactFree SEO Audit
Free tool

Canonical Tag Generator: Build a Correct rel=canonical

Paste your page URL and get a clean, copy-ready rel=canonical link tag that tells search engines which version of a page to index.

Home / Tools / Canonical Tag Generator
Your canonical tag

Where it goes

Paste the tag inside the <head> of your page, before the closing </head> tag. Use exactly one canonical tag per page, and point it at a full https:// URL.

Built by Rankite, the SEO team behind Swordfish AI's +400% revenue and Zluri's +45% organic growth. See the case studies

A canonical tag is how you tell search engines which URL is the real, indexable version of a page when more than one address could serve the same content. Paste a URL into the generator above and it returns a ready-to-use link element. Below, here is what the tag does, when to reach for it, and the mistakes that quietly break it.

What is a canonical tag?

A canonical tag is a single line of HTML placed in the head of a page. It looks like this: <link rel="canonical" href="https://example.com/page" />. The rel="canonical" attribute marks the link as a canonical reference, and the href holds the preferred, absolute URL you want search engines to treat as the master copy. When the same content is reachable at several addresses, the canonical tag consolidates ranking signals, such as links and relevance, onto the one URL you name. Without it, search engines guess which version to index, and that guess can split your authority across duplicates or surface the wrong page in results.

When to use a canonical tag

Use a canonical tag any time the same or near-identical content lives at more than one URL. The most common cases are duplicate content, where a product appears under two category paths, and URL parameters, where filters, sort orders, and tracking tags like ?utm_source create dozens of variants of one page. Both should canonicalize to the clean base URL. Content syndication is another: when a partner republishes your article, the canonical on their copy can point back to your original so you keep the ranking credit. The most overlooked case is the self-referencing canonical, where a page simply points at its own URL. That is the safe default for nearly every indexable page, because it removes ambiguity and protects you from accidental duplicates spun up by trailing slashes, uppercase letters, or session IDs.

Common canonical mistakes

The fastest way to break a canonical is to point it at a noindexed URL. That tells search engines to consolidate on a page you also told them not to index, which is a contradiction they may resolve by dropping the lot. Next is the canonical chain: page A canonicalizes to B, and B canonicalizes to C. Always point straight at the final destination instead of hopping through intermediaries. Relative URLs are another trap. A value like /page leaves the host and protocol to interpretation, so always use the full absolute address that starts with https://. Finally, watch for multiple canonical tags on one page. If a CMS or plugin injects a second one, search engines often ignore both, and you lose the signal entirely. One tag, one absolute URL, in the head.

Related articles

FAQ

Canonical tags: questions, answered

What is a canonical tag?
A canonical tag is a link element in the head of a page that tells search engines which URL is the master version of that content. It uses the form rel="canonical" with an href pointing to the preferred URL. When several pages show the same or near-identical content, the canonical tag consolidates ranking signals onto one address.
Where do I put the canonical tag?
Place the canonical link element inside the head section of the HTML, before the closing head tag. It must not sit in the body. Each page should have exactly one canonical tag, and the href should be a full absolute URL that starts with https://.
Should a page have a canonical tag pointing to itself?
Yes. A self-referencing canonical, where the page points to its own URL, is good practice. It removes ambiguity for crawlers, guards against duplicate versions created by tracking parameters or trailing slashes, and is the safe default for almost every indexable page.
Does a canonical tag stop a page from being indexed?
No. A canonical tag is a hint about which URL to index, not a block. If you want a page kept out of the index entirely, use a noindex meta robots tag instead. Never point a canonical at a noindexed URL, because that sends search engines conflicting instructions.
Can I use a relative URL in a canonical tag?
You should not. Google may accept a relative URL, but absolute URLs that start with https:// are far safer and remove any guesswork about the host and protocol. Always use the complete address, including the domain, in your canonical href.

More free tools

Let's grow

Ready to own page one?

Get a free, no-obligation SEO audit and a 30-minute strategy session. We'll show you exactly where the growth is hiding.

Book your free audit Explore services
Get in touch

Tell us about your project

Fill out the form and we'll get back to you within one business day. Prefer email? Write to us directly at contact@rankite.com.

Or copy our email and write to us directly: contact@rankite.com