Generate a correct canonical link tag for any URL, with normalization options to keep your SEO signals consolidated.
Search engines treat http vs https, www vs non-www, and trailing-slash variants as separate URLs. A canonical tag points them all at one preferred version so ranking signals consolidate instead of splitting.
Every page should carry a self-referencing canonical tag in its head, even if you think you have no duplicates.
The generator cleans the URL before emitting the tag: forcing https, stripping www, removing tracking query strings, and standardizing the trailing slash. Pick the variants that match your site's actual preferred URLs.
The golden rule: the canonical URL must return a 200 page, not redirect elsewhere.