Skip to content

Free Technical SEO tool

Canonical Tag Generator

The Canonical Tag Generator turns any URL into a correctly formatted rel="canonical" tag for your page’s <head>, along with the HTTP Link header version for PDFs, images and other files that cannot hold HTML. It is free, instant and runs privately in your browser.

  • 100% free
  • No sign-up
  • Runs in your browser
Place this within the <head> section of your HTML page.
Essential for non-HTML files like PDFs or images.

How it works

How to use the Canonical Tag Generator

  1. Enter the preferred URL

    Type the single version of the page you want Google to index and rank, using the full absolute URL.

  2. Pick the output

    Use the HTML tag for web pages, or the HTTP header for files such as PDFs that have no <head>.

  3. Copy and implement

    Paste the tag into the page template, or add the header in your server or CDN configuration.

What is a canonical tag?

A canonical tag tells search engines which URL is the master copy of a page when the same or very similar content is available at more than one address. Google then concentrates ranking signals such as links and relevance on that one URL instead of spreading them across duplicates.

Duplicates appear far more often than most site owners realise. Common causes include:

  • Tracking and filter parameters, such as ?utm_source= or ?colour=blue.
  • HTTP and HTTPS, or www and non-www versions that both resolve.
  • Trailing slash and uppercase variations of the same path.
  • Products listed under several category paths.
  • Syndicated or printer-friendly versions of articles.

Canonical tag or 301 redirect?

Use a 301 redirect when the duplicate URL has no reason to exist for visitors, for example after a migration or when merging two pages. Use a canonical tag when both versions need to stay accessible, such as a filtered product listing that customers use but which you do not want indexed separately.

Canonical mistakes that cost rankings

  • Canonicalising to a redirect, 404 or noindexed page. The target must be live, indexable and return a 200 status.
  • Multiple canonical tags. Plugins and themes sometimes add a second tag. When they disagree, Google may ignore both.
  • Pointing paginated pages at page one. Page two of a category has different products on it. It should normally canonicalise to itself.
  • Relative URLs. Always use the full URL, including https://.
  • Mixed signals. If your sitemap lists one URL, internal links use another and the canonical names a third, Google will decide for itself.

To check canonicals across many pages at once, run a list of URLs through the Bulk SEO Checker. It flags missing, self-referencing and cross-pointing canonicals in one pass.

Questions

Canonical Tag Generator FAQs

Is the Canonical Tag Generator free?

Yes, with no sign-up or usage limit.

What is the difference between the HTML tag and the HTTP header?

They do the same job in different places. The HTML tag sits in a page’s <head>. The HTTP header is sent by your server, which is the only option for non-HTML files such as PDFs.

Should every page have a self-referencing canonical?

It is good practice. A self-referencing canonical removes ambiguity when a page can be reached through tracking parameters, trailing-slash variants or mixed casing.

Will Google always obey my canonical tag?

No. Google treats it as a strong hint rather than a directive. If internal links, sitemaps and redirects point elsewhere, Google may choose a different canonical. Consistent signals make your choice far more likely to stick.

Is my URL sent anywhere?

No. The tag is built locally with JavaScript and nothing leaves your browser.

Work with The Search Foundry

Need the whole site checked properly?

Our technical SEO audits crawl every URL, prioritise fixes by revenue impact and come with a developer-ready action list.