Canonical Tag Generator
Build canonical tags.
Loading tool…
About Canonical Tag Generator
The Canonical Tag Generator turns any page URL into a ready-to-paste rel="canonical" link tag. Paste a URL and it validates and normalizes it — lowercasing the host, dropping default ports, and optionally stripping tracking parameters, fragments, or trailing slashes — then outputs a clean canonical tag plus an optional matching og:url meta tag with one-click copy.
It is completely free with no sign-up, no limits, and no ads to click through. Everything runs entirely in your browser using standard web APIs, so the URLs you enter never leave your device or get uploaded to any server.
Frequently asked questions
- What is a canonical tag and why do I need one?
- A canonical tag (<link rel="canonical">) tells search engines which URL is the preferred version of a page when the same content is reachable through several URLs. It consolidates ranking signals onto one URL and prevents duplicate-content dilution, which is common with tracking parameters, trailing slashes, or http/https and www variants.
- Is this canonical tag generator free?
- Yes, it is 100% free with no account, no usage limits, and no watermarks. You can generate as many canonical tags as you like.
- Is my data uploaded anywhere?
- No. The tool runs entirely in your browser — the URL you paste is parsed and normalized locally using your browser's built-in URL API. Nothing is sent to a server, logged, or stored.
- Should the canonical URL be absolute or relative?
- Always use a full absolute URL, including the https:// scheme and domain, for example https://example.com/page. Google can technically read relative canonicals, but absolute URLs remove all ambiguity and are the recommended best practice. This tool always outputs an absolute URL.
- Where do I put the canonical tag?
- Place it inside the <head> section of the page's HTML, ideally near the top. The tag should point at the single preferred version of the page, and every duplicate or parameterized variant of that page should include the exact same canonical tag.
- Should a page have a canonical tag pointing to itself?
- Yes. A self-referencing canonical on your preferred URL is recommended by Google. It makes your intended URL explicit and guards against duplicate versions being generated by parameters, sorting, pagination, or session IDs.
- What does the og:url tag do?
- The og:url Open Graph meta tag defines the canonical URL used when your page is shared on social platforms like Facebook and LinkedIn. Keeping it identical to your rel="canonical" URL ensures social shares and search engines agree on the same preferred address, so this tool can generate both at once.