Canonical tag generator

Build correct canonical tags and understand self-referencing canonicals.

FreeRuns in your browserNo signupUpdated 2026-10-29

Pick the www and slash settings that match how your site already resolves, then use them everywhere.

Type

Self-referencing

The page names itself as the original

Changes made

6

to turn the served URL into the canonical form

In the <head>
<link rel="canonical" href="https://www.example.com/services/web-design" />
Or as an HTTP header (PDFs, non-HTML)
Link: <https://www.example.com/services/web-design>; rel="canonical"

What changed

Upgraded http to https
Added www
Lowercased the path
Removed tracking parameters
Dropped the #fragment
Removed trailing slash

About this tool

How it works and how to read the result.

Need this done for you?

Technical SEO & performance

Faster pages, clean structure and better visibility in search.

See the service

What it does

A canonical tag generator writes the link rel canonical tag for a page and shows you what a clean canonical URL should look like. Paste the URL exactly as served, with any tracking parameters, fragments or mixed case, and the generator strips those, applies your www and trailing slash rules and produces the tag. It lists every change it made so the reasoning is visible, and it can also output the equivalent HTTP header for PDFs and other non-HTML files.

How to use it

  1. Paste the page URL as it appears in the address bar.
  2. Leave the canonical field empty for the usual self-referencing tag.
  3. Set the www and trailing slash options to match how your site already resolves.
  4. Check the "What changed" list to confirm each clean-up is what you intended.
  5. Copy the link tag into the head, or the Link header for non-HTML files.

How to read the result

The Type badge says "Self-referencing" when the tag points to the page's own clean URL, which is the normal case. It changes to "Points elsewhere" if you enter a different canonical, and to "Invalid URL" if what you typed cannot be parsed.

The sample URL http://example.com/Services/Web-Design/?utm_source=newsletter&ref=footer#pricing becomes https://www.example.com/services/web-design after six changes: http to https, www added, path lowercased, tracking parameters removed, fragment dropped and trailing slash removed. The Changes stat shows "6" and the table lists each one. That is the address to use in the sitemap, in internal links and in the tag.

If the table says it kept remaining query parameters, decide whether those parameters change the content. A product colour parameter might; a sort order usually does not, and pages that differ only by sort order should canonical to the unsorted version.

For sites in several languages, the canonical on each version should point to itself while hreflang tags link the set. Consistent canonicals across a site are part of our technical SEO service.

Questions

Frequently asked.

What is a self-referencing canonical?

A canonical tag that points to the page's own clean URL. It tells Google that of all the variants that might reach this page, with tracking codes, capital letters or a trailing slash, this exact address is the one to index. Nearly every page should have one, and it is the safe default.

Does a canonical tag redirect visitors?

No. Visitors stay on the URL they opened. The tag is a hint to search engines about which URL to show and to credit. If you want visitors moved as well, use a 301 redirect. Canonical is for variants that must keep working, such as filtered or tracked URLs.

Can I canonical to a different domain?

Yes. Cross-domain canonicals are used when the same article is published on two sites, to say which one is the original. Google treats it as a strong hint rather than a rule and may ignore it if the pages differ a lot. Both pages should otherwise be identical.

Your next move

Like what you see? Tell us about it.

A process that takes too long, a website that undersells you, or an idea ready to take shape. Tell us where you are and we will suggest a useful next step.

India · Working with clients worldwide

We reply within a working day. No spam, ever.