Canonical URL Generator
Generate the exact rel="canonical" tag for any URL, with the right format, escaping, and protocol. Copy-paste ready for your <head>.
Generate copy-paste-ready canonical tags, done right
Most "canonical generators" just wrap your URL in a tag and call it done. This one handles the edge cases that actually break canonicalisation: non-ASCII characters in URLs, query parameter ordering, http vs https normalisation, trailing slash decisions, and cross-domain canonical syntax.
Paste the URL you want to canonicalise. The generator returns the correctly-formatted tag plus a 30-second sanity check explaining why this URL is the right canonical (or warning you if it might not be).
Which URL should be your canonical? Use this framework
Pick the URL with the cleanest, shortest path. Strip tracking parameters (utm_*, fbclid, gclid, etc.), they should never be in a canonical.
Pick https over http. Always.
Pick the version most of your internal links point to. Use Screaming Frog or Ahrefs to check.
Pick the version your XML sitemap lists. If they disagree, fix the sitemap or the canonical to match.
Pick the version that has the most external backlinks. Use Ahrefs Site Explorer → "Top pages" filtered by URL pattern.
When all five point to the same URL, that's your canonical. When they conflict, you have a consolidation problem to fix BEFORE setting the canonical.