Free browser tool

Canonical tag generator

Generate a canonical link tag from an absolute canonical URL.

Input and settings

How to use it

Turn an absolute page URL into a canonical link element, normalizing the URL and removing any fragment.

  1. Enter the canonical absolute URL.
  2. Select Generate.
  3. Copy the resulting <link rel="canonical"> tag.
Input
Absolute URL
Normalization
URL formatting may be standardized
Fragment
Removed before output
Extra helper
Batch canonical generation for one URL per line

A #fragment is removed from the canonical URL

https://example.com/page/#section becomes a canonical tag pointing to https://example.com/page/.

Canonical is a consolidation hint, not a redirect. Internal links, redirects, sitemap URLs and duplicate-page behavior should point in the same direction when possible.

The generator requires an absolute URL

A relative value such as /page/ is rejected because a canonical target should be expressed as a complete URL.

URL fragments are intentionally removed

Fragments identify a position within a resource rather than a separate canonical document, so the main generator clears the hash.

The generated URL may look slightly normalized

Minor presentation details such as hostname casing or percent-encoding can be standardized in the generated URL. A #fragment is removed intentionally.

Canonical does not automatically remove duplicates

Search engines can consider other signals. A canonical tag works best when redirects, internal links and sitemaps are also consistent.