New: 500+ free SEO and AI search tools, no sign-up.Explore tools →

How to Use the Canonical Tag Generator (Step by Step Guide)

By Hasnain Sanmal
Canonical Tag Generator: how to fill in the tool

This guide explains how to use Canonical Tag Generator, step by step, with screenshots of the real tool. It is written for site owners, developers and SEOs who look after crawling, indexing and site health. Create rel=canonical tags for one page or hundreds, clean tracking parameters and get the HTML tag or HTTP header version for PDFs.

Quick answer: To use the Canonical Tag Generator, open the free tool, paste the URLs, choose the output, choose the trailing slash and tick the remove UTM and click IDs, then copy the text it creates. Everything runs in your browser, so there is no sign up and nothing you type is stored on a server.

how to use Canonical Tag Generator: Canonical Tag Generator with example inputs
Screenshot of the live Canonical Tag Generator with its example values.

What is the Canonical Tag Generator?

Create rel canonical link tags or HTTP Link headers in bulk, remove UTM parameters and normalise URLs.

It tells Google which URL is the main version of a page when the same content is reachable at several URLs, for example with tracking parameters, filters or http and https versions.

How to use Canonical Tag Generator step by step

  1. Step 1: Open the Canonical Tag Generator

    Go to the Canonical Tag Generator on hasnainsanmal.com. It loads with example values already filled in, so you can see how it works straight away. It works the same way on a phone, tablet or computer.

  2. Step 2: Paste URLs

    Paste or type your text into URLs (one per line). The example starts with: https://www.Example.com/blog/seo-guide/?utm_source=facebook….

  3. Step 3: Choose Output

    Choose an option from Output. Options include HTML link tag and HTTP Link header. The example uses HTML link tag.

  4. Step 4: Choose Trailing slash

    Choose an option from Trailing slash. Options include Keep as is, Always add and Always remove. The example uses Keep as is.

  5. Step 5: Tick Remove UTM and click IDs

    Tick Remove UTM and click IDs if you want this option, or leave it empty to turn it off.

  6. Step 6: Tick Remove all parameters

    Tick Remove all parameters if you want this option, or leave it empty to turn it off.

  7. Step 7: Tick Lowercase host

    Tick Lowercase host if you want this option, or leave it empty to turn it off.

  8. Step 8: Tick Force https

    Tick Force https if you want this option, or leave it empty to turn it off.

  9. Step 9: Read the results

    The output appears inside the tool card. Change any input to compare different scenarios.

    Canonical Tag Generator results example
    Screenshot of the Canonical Tag Generator results.
  10. Step 10: Copy or download the output

    Use Copy to take the result into your document, CMS, spreadsheet or report.

What does each field in the Canonical Tag Generator mean?

Field What to enter Example
URLs Text, one item per line where asked https://www.Example.com/blog/seo-guide/?utm_source=facebook…
Output Choose one option (HTML link tag, HTTP Link header) HTML link tag
Trailing slash Choose one option (Keep as is, Always add, Always remove) Keep as is
Remove UTM and click IDs Tick to turn on on
Remove all parameters Tick to turn on on
Lowercase host Tick to turn on on
Force https Tick to turn on on

What does a worked example look like?

With the example inputs (Output: HTML link tag, Trailing slash: Keep as is, Remove UTM and click IDs: on and Remove all parameters: on), the Canonical Tag Generator returns: <link rel="canonical" href="https://www.example.com/blog/seo-guide/" /> <link rel="canonical" href="https://example.com/shop/shoes?color=red" />

Replace the example with your own input to get your own result, then review it before you use it.

How do you get the best results from the Canonical Tag Generator?

  • Every indexable page should have a self-referencing canonical.
  • Use the HTTP header version for PDFs and other non-HTML files.
  • Canonical is a hint, so keep internal links pointing at the same URL.
  • Re-check after every theme, plugin or server change.
  • Confirm fixes in Google Search Console with URL Inspection.

For background, read the Google crawling and indexing documentation. If you are working on a related task, our guide on how to use the Meta Robots Tag Generator walks through it the same way. You can also browse all free Technical SEO Tools.

What mistakes should you avoid with the Canonical Tag Generator?

  • Testing on a staging copy and forgetting that the live site has different rules.
  • Fixing one URL and not checking the template that created the problem.
  • Changing URLs without adding 301 redirects.

Key terms

Canonical tag
A link element that tells search engines which URL is the main version of a page when several URLs show the same or similar content. It helps combine ranking signals and prevents duplicate pages from competing.
301 redirect
A permanent redirect that sends users and search engines from an old URL to a new one. It passes most ranking signals to the new address, which makes it the standard choice when a page moves or two pages are merged.
Click through rate
The share of people who click a result after seeing it, found by dividing clicks by impressions and multiplying by 100. In Google Search Console it helps you spot pages that rank but need a better title or description.
UTM parameters
Tags added to the end of a URL, such as utm_source, utm_medium and utm_campaign, that tell Google Analytics where a visit came from. Consistent lower case naming keeps reports clean and comparable.
HTML
HyperText Markup Language, the standard language that structures web pages with elements such as headings, paragraphs, links and images. Search engines read the HTML to understand page content, links and metadata.

Related free tools

Frequently asked questions

Is the Canonical Tag Generator free to use?

Yes. The Canonical Tag Generator is completely free, with no sign up, no daily limit and no watermark. It is one of more than 500 free SEO and marketing tools on hasnainsanmal.com.

Is my data stored when I use the Canonical Tag Generator?

No. The Canonical Tag Generator runs in your browser with JavaScript, so the values and text you enter are processed on your own device and are not sent to or saved on our server.

How accurate is the Canonical Tag Generator?

It creates a solid first draft from your inputs. Always review and edit the output so it is accurate, specific and sounds like you before you publish or send it.

Does the Canonical Tag Generator work on a phone?

Yes. The tool is built for screens from 360 pixels wide, so you can use the Canonical Tag Generator on a phone, tablet or computer in any modern browser.

Can I use the Canonical Tag Generator for client work?

Yes. You can use the results for your own sites and for client projects. Check the output first, and keep a note of the inputs you used so you can repeat the check later.

What should I do after using the Canonical Tag Generator?

Apply the result on your page, campaign or document, then measure the effect. If you would like expert help, see the SEO services or message Hasnain on WhatsApp for a free recommendation.

How we checked this guide: every step and screenshot was taken from the live Canonical Tag Generator on 2 November 2026. Further reading: Google SEO Starter Guide.

Hasnain Sanmal
Hasnain Sanmal

SEO and guest post outreach specialist with 2000+ completed orders and a list of 1000+ hand-picked, high-authority websites. More about me

Need high-authority backlinks?

Get niche-relevant guest posts from my own outreach list of 1000+ websites.

Chat on WhatsApp

More to read

All articles