Canonical Tag Generator

Enter a URL and instantly get the correct HTML canonical link tag to prevent duplicate content penalties.

Canonical URL

Enter the preferred (canonical) version of the URL.

Options

Generated Tag

Your canonical tag will appear here...

Where to place it

Paste the tag inside the <head> section of every duplicate or alternate page:

<head>
  <meta charset="UTF-8">
  <title>Page Title</title>
  <link rel="canonical" href="https://example.com/page/">
</head>

Canonical tag checklist

  • Use the full absolute URL including protocol (https://)
  • Add self-referencing canonical tags on all pages, including the canonical itself
  • Keep only ONE canonical tag per page — multiple tags are ignored
  • The canonical URL must return a 200 status, not a redirect or 404
  • Place the tag in <head>, not in <body>

Summary

Enter a URL and instantly get the correct HTML canonical link tag to prevent duplicate content penalties.

How it works

  1. Enter the canonical URL — the preferred version of the page.
  2. The tool validates the URL format and normalizes it.
  3. Your canonical link tag is generated instantly below.
  4. Click "Copy Tag" to copy the HTML snippet to your clipboard.
  5. Paste the tag inside the <head> section of the duplicate or alternate page.

Use cases

Frequently Asked Questions

Related tools

Last updated: 2026-05-29 · Reviewed by Nham Vu