Canonical URL Generator
Generate a canonical link tag.
About this tool
Paste a page address and press Generate. You get a cleaned version with https added if missing, the host in lowercase, and every query parameter and fragment removed.
How to use
How it works
The URL is parsed, the query string and fragment are cleared, and the rest is rewritten, so Example.com becomes example.com and a bare domain gets a trailing slash. The path keeps its capitalisation. Because every parameter is dropped, do not use it for pages whose content depends on a parameter such as ?id=2.
Worked example
A tracked URL
- Input
- example.com/page?utm_source=x&id=2#top
- Output
- https://example.com/page
- Walkthrough
- https:// is added, the query string with both parameters and the #top fragment are removed.
Limitations
- Removes all query parameters, including ones that identify content.
- Returns the address only, not the full link tag.
- Does not check what the page canonical should be.
Questions
What is a canonical URL?
Does it keep ?page=2 or ?id=5?
Does it give me the link tag?
Features
- Adds https if missing
- Strips query and fragment
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Intro to Google Search Console
Google Search Central
Official GSC intro next to SEO preview and audit helpers.
Watch on YouTubeHow to avoid duplicate content
Google Search Central
Canonical and uniqueness issues meta tools help you catch.
Watch on YouTube
- Sitemaps overview
Google Search Central
When sitemap and URL tools matter for discovery.
- The Open Graph protocol
ogp.me
OG tags used by social/SEO preview tools.