SEO

Canonical Tag Generator

Generate proper rel="canonical" tags to prevent duplicate content.

Enter Preferred URL

Field note

JSON Canonical Tag Generator emits

Input

Paste https://example.com/seo-course?utm_source=newsletter. The tag’s href includes the utm query. If that parameter should not be the canonical, delete it and generate again. The page was not requested.

What you should see

Copy the cleaned tag into the head of /seo-course and into any duplicate such as /seo-course/. The tool did not add the trailing-slash variant for you.

Detail

What the Canonical Tag Generator script contains

  • 01

    You get one canonical link tag for the URL you typed.

  • 02

    The same tag can be pasted on each duplicate.

  • 03

    The URL is not fetched while the tag is built.

Read this

Properties Canonical Tag Generator asks for

rel canonical
The link relation that names the preferred URL.
href
The URL inside that link. It is what you typed.
Duplicate URL
Another address that serves the same content.
Absolute URL
Scheme plus host plus path.
Head
The HTML head, where the tag belongs.

Field note

Where Canonical Tag Generator markup belongs

A canonical link tells a crawler which URL is the preferred copy when several addresses serve the same content. It is an HTML link element in the page head, not a redirect. This form only prints that element.

A canonical names the preferred address when several URLs serve the same content. It is not a redirect. Visitors can still open the duplicates. Crawlers are asked to treat the href as the main copy. Paste an absolute URL, including https. A tracking query you leave in the box becomes part of the href.

href is one of the values Canonical Tag Generator puts on screen. The preferred URL. The href is exactly the string you pasted, after the tag is formed. A parameter you did not want indexed will be in the href.

Read rel on its own before you mix it with the other rows. rel canonical marks the link as a preferred-URL hint. The attribute is written for you. It is not a meta robots tag and not a redirect.

Absolute URL answers a narrower question than the headline number. Crawlers need a full URL in this href. A path without a host is a weak href. Include https and the host.

Treat Duplicates as a label with a specific job. The tag belongs on the copies and on the preferred page. The generator prints one tag. You paste it in each head yourself.

The No fetch line is worth a full stop. The form does not request the URL. A dead URL still produces a tag. Check the URL in a browser before you publish the tag.

The tool does not lowercase the host, add a trailing slash, or check that the URL returns 200. What you paste is what the href contains. Put the same tag on the preferred URL and on each duplicate. An empty box does not invent an address.

If you remember one sequence from Canonical Tag Generator, remember the fields in the order they change a decision. href matters because The preferred URL. In practice, The href is exactly the string you pasted, after the tag is formed. The mistake to avoid is this: A parameter you did not want indexed will be in the href. rel matters because rel canonical marks the link as a preferred-URL hint. In practice, The attribute is written for you. The mistake to avoid is this: It is not a meta robots tag and not a redirect. Absolute URL matters because Crawlers need a full URL in this href. In practice, A path without a host is a weak href. The mistake to avoid is this: Include https and the host. Duplicates matters because The tag belongs on the copies and on the preferred page. In practice, The generator prints one tag. The mistake to avoid is this: You paste it in each head yourself. No fetch matters because The form does not request the URL. In practice, A dead URL still produces a tag. The mistake to avoid is this: Check the URL in a browser before you publish the tag. After that, the checks are simple. The URL is absolute and uses the host you want indexed. Tracking parameters were removed. The tag will be pasted on the duplicates and the preferred URL. You did not expect a redirect. You confirmed the URL loads.

The worked example for Canonical Tag Generator, read as one scene, is this. Paste https://example.com/seo-course?utm_source=newsletter. The tag’s href includes the utm query. If that parameter should not be the canonical, delete it and generate again. The page was not requested. Copy the cleaned tag into the head of /seo-course and into any duplicate such as /seo-course/. The tool did not add the trailing-slash variant for you.

Final notes for Canonical Tag Generator, written as decisions rather than as a table. When href is in front of you, decide using this: The preferred URL. A parameter you did not want indexed will be in the href. When rel is in front of you, decide using this: rel canonical marks the link as a preferred-URL hint. It is not a meta robots tag and not a redirect. When Absolute URL is in front of you, decide using this: Crawlers need a full URL in this href. Include https and the host. When Duplicates is in front of you, decide using this: The tag belongs on the copies and on the preferred page. You paste it in each head yourself. When No fetch is in front of you, decide using this: The form does not request the URL. Check the URL in a browser before you publish the tag. Then apply the checks without skipping one. The URL is absolute and uses the host you want indexed. Tracking parameters were removed. The tag will be pasted on the duplicates and the preferred URL. You did not expect a redirect. You confirmed the URL loads.

Keep Canonical Tag Generator as this step only. When the job moves on, the Meta Title & Description Generator is the next page: The Meta Title & Description Generator writes the HTML for a page title, a meta description, robots directives, and Open Graph and Twitter tags. The Meta Tag Analyzer covers a different piece of the same work: Meta Tag Analyzer asks for a page URL and then shows a title, description, and keyword line with character counts.

Where Canonical Tag Generator fits

Canonical Tag Generator turns one preferred URL into a link element with rel canonical. It is for pages that can be reached by more than one address. You copy a single HTML tag. The tag is written in the browser.

Canonical Tag Generator turns one preferred URL into a link element with rel canonical. It does not fetch the URL. You copy the tag and place it in the head yourself.

Canonical Tag Generator in order

Paste the preferred URL, including the protocol.

Read the link rel canonical tag.

Strip query parameters you do not want indexed, then look again.

Copy the tag into the head of every duplicate and of the preferred URL.

Easy to misread Canonical Tag Generator

Leaving a tracking query in the href

The query becomes the preferred URL.

Using a relative path

Use an absolute URL.

Expecting a redirect

Users can still open duplicates.

Assuming the CMS was updated

You paste the tag.

From the form

Canonical Tag Generator questions

What HTML does the canonical tool copy?

A link element with rel canonical and the URL you entered as the href.

Does it check that the URL loads?

No. It only writes the tag. You confirm the URL yourself.

Where should the canonical tag go?

In the head of the preferred page and of the duplicates that should point at it.

Will it strip a utm query?

No. Delete parameters you do not want before you generate.

Note

Before you paste Canonical Tag Generator

  • The URL is absolute and uses the host you want indexed.
  • Tracking parameters were removed.
  • The tag will be pasted on the duplicates and the preferred URL.
  • You did not expect a redirect.
  • You confirmed the URL loads.
WhatsApp Advisor
Enroll Now