Canonical URL Generator
Turn any page URL into a clean, self-referencing canonical tag. Force HTTPS, strip tracking parameters and normalize the address.
<link rel="canonical" href="https://example.com/blog/post">
Clean URL: https://example.com/blog/post
What is a canonical URL?
A canonical URL is the preferred version of a page that you want search engines to index when the same content is available at more than one address. You declare it with a <link rel="canonical" href="…"> tag in the page’s <head>. Google and other engines usually honour the tag, consolidating ranking signals onto the single preferred URL instead of splitting them across duplicates.
Common duplicate situations include HTTP vs HTTPS, www vs non-www, trailing-slash variants, session IDs, and tracking parameters such as utm_source or fbclid. Without a clear canonical, search engines may treat those versions as separate pages, diluting authority and wasting crawl budget.
Why a clean self-referencing canonical matters
Every page should point its canonical to itself (a self-referencing canonical). This removes ambiguity even when you do not currently have duplicates. It also protects against future issues if someone links to the page with extra parameters. Consistent canonicals make it easier for search engines and AI systems to understand which URL is the authoritative one.
Normalization rules used by this tool follow common SEO practice:
- Prefer HTTPS over HTTP.
- Use consistent casing (usually lowercase).
- Remove tracking and advertising parameters that do not change page content.
- Decide on a trailing-slash policy and stick to it.
How to use this Canonical URL Generator
1. Paste the full page URL (with or without protocol or parameters).
2. Choose the normalization options that match your site’s preferred format.
3. The tool instantly produces a ready-to-paste <link rel="canonical"> tag and shows the clean URL.
4. Copy the tag and place it in the <head> of the page.
5. For every other version of the same content, point the canonical to this clean URL.
All processing happens in your browser. Nothing is uploaded or stored.
Best practices for canonical tags
- Use absolute URLs (include https://).
- Point to a page that returns HTTP 200, not a redirect or error.
- Include a self-referencing canonical on the preferred page itself.
- Be consistent: every duplicate should point to the same preferred URL.
- When using hreflang, the canonical should usually be the same-language version.
- Do not rely on robots.txt or noindex alone to solve duplicate-content problems.
Frequently asked questions
Does every page need a canonical tag?
Yes. A self-referencing canonical is best practice even when you have no known duplicates. It removes ambiguity for search engines.
Should I strip all query parameters?
Only tracking and advertising parameters that do not change the page content (utm_*, fbclid, gclid, etc.). Keep parameters that actually select different content, such as product variants or pagination if those are distinct pages.
HTTP or HTTPS in the canonical?
Always prefer the HTTPS version unless your site has a technical reason to stay on HTTP.
What about trailing slashes?
Pick one convention (with or without) and apply it consistently. This tool lets you remove trailing slashes on non-homepage URLs if that is your preference.
Read the guide
What Is a Canonical URL and How to Set One
More free tools
Meta Tag Generator · Hreflang Tag Generator · Slug Generator · XML Sitemap Generator · Robots.txt Generator · Schema Markup Generator