Canonical Tag Generator
Generate a canonical link tag from any URL
Everything runs in your browser. Your data never leaves your device.
Related tools
How to use
Paste your canonical URL into the input field. The canonical link tag appears on the right immediately and is ready to copy.
Paste the canonical URL
Enter the absolute URL of the canonical version of the page — the one you want search engines to treat as authoritative. It must start with https:// or http://.
Copy the generated tag
The output shows the completed link tag. Click Copy and paste it inside the head element of your HTML.
Verify the placement
The canonical tag must be in the head section, not the body. If your CMS or framework adds canonical tags automatically, check that it does not produce duplicate tags.
Examples
Resolving a duplicate content issue
If https://example.com/page and https://example.com/page?utm_source=email both serve identical content, add a canonical tag pointing to https://example.com/page on both. This tells Google which version to index and consolidates link equity.
Cross-domain canonical
If the same article is syndicated on a partner site, the partner can add a canonical tag pointing back to the original URL. This signals that the original publication is the preferred version for indexing.
About this tool
Generate a valid HTML canonical link tag from any absolute URL. Paste a URL, and the tool outputs the correct link rel="canonical" element ready to paste into the head of your page. The URL is validated — only absolute URLs (starting with http:// or https://) are accepted. Nothing is uploaded.