Search tools

Canonical Tag Generator

Paste any version of a page URL and get the clean canonical form, as an HTML tag and an HTTP header.

Canonical Tag Generator tool

Canonical URL
    HTML — inside <head>
    HTTP header — for PDFs and other non-HTML files

    Processing runs in your browser.

    The same page can often be reached at many addresses. http:// and https://, with and without www, with a trailing slash or without one, and with every tracking parameter a newsletter or ad adds. To a search engine, each of those is a separate URL. A canonical tag tells it which one to treat as the real page, so links and ranking signals aren’t split across copies.

    A worked example

    Paste the sample URL:

    http://www.Example.com/Shop/Shoes?utm_source=newsletter&color=red&fbclid=IwAR0abc#reviews

    With https forced, www removed and color kept, you get:

    https://example.com/Shop/Shoes?color=red

    The newsletter and Facebook tracking parameters are gone, as is the #reviews fragment, which search engines ignore anyway. color=red stays because it shows a different product variant.

    Choosing which parameters to keep

    Keep a parameter only if it changes what the page shows in a way worth indexing separately: pagination (page=2), a product variant or a language. Drop anything that tracks, sorts or filters the same content.

    Making canonicals stick

    Google treats a canonical as a strong hint, not a command. Back it up: link internally to the canonical URL, list only canonical URLs in your sitemap, and redirect the http and www versions to your preferred host. When all the signals agree, the right URL is the one that ranks.

    How to use the Canonical Tag Generator

    1. Paste the page URL, including any tracking parameters.
    2. Choose your site’s rules for www and trailing slashes.
    3. List any query parameters that really change the page content, such as page or color.
    4. Check the list of changes, then copy the HTML tag or the HTTP header.

    Features

    • Removes utm_, fbclid, gclid and every other parameter unless you choose to keep it.
    • Forces https and adds or removes www to match your preferred host.
    • Adds or removes trailing slashes, but never on file URLs like /guide.pdf.
    • Optional lowercase paths and fragment (#) removal.
    • Outputs both a <link rel="canonical"> tag and a Link: header for non-HTML files.

    Frequently asked questions

    What does a canonical tag do?

    It tells search engines which URL is the main version of a page when the same content is reachable at several addresses. Ranking signals from the duplicates are then combined into the canonical URL.

    Should every page have a self-referencing canonical?

    Yes, it is good practice. It protects against copies created by tracking parameters, session IDs or other sites scraping your content.

    Is a canonical tag the same as a redirect?

    No. A redirect sends visitors and bots to another URL. A canonical is a hint: both URLs keep working, and search engines usually, but not always, index the one you name.

    Can I point a canonical to a different domain?

    Yes. Cross-domain canonicals are fine when you syndicate the same article on another site and want the original to rank.

    Written by