Canonical Tag Generator
Build correct canonical link tags to prevent duplicate content penalties. Strip query strings, trailing slashes, and force HTTPS — all in your browser.
Canonical Tag Generator
Build the correct <link rel="canonical"> tag instantly. No account needed — runs entirely in your browser.
Page URL
The exact preferred URL for this page. Query strings, hash fragments, and trailing slashes can be stripped using the options below.
Normalization Options
Force HTTPS
Always use https:// — recommended. HTTP canonical URLs signal insecure preference to Google.
Strip trailing slash
Remove the trailing / from the path. Canonical and non-canonical versions should match your server's behavior exactly.
Strip query parameters
Remove ?param=value strings. Use this if query strings are tracking/session parameters that don't change content.
Strip hash fragment
Remove #anchor links. Hash fragments are client-side only and are invisible to search engines anyway.
Canonical Tag Output
Enter a valid URL to generate your canonical tag.
100% Private & Client-Side
Your URLs are parsed locally using your browser's native URL API. Nothing is sent to any server. No account or sign-up required.
Where to place this tag
- 1Copy the tag from the output above.
- 2Paste it inside the
<head>section of the page's HTML. - 3For CMS users (WordPress, Shopify): paste it in your theme's header section or SEO plugin settings.
- 4Verify it is live using Google Search Console's URL Inspection tool.
Frequently Asked Questions
Related Tools
You might also find these utilities helpful for your canonical tag generator workflow.