Build a clean canonical URL and tag
Generate the canonical URL for a page and the matching
<link rel="canonical"> tag. Choose the normalisation rules that match your
site: force HTTPS, lowercase the host, drop the www. prefix, strip tracking
parameters like utm_* and gclid, remove the #fragment, or trim a trailing
slash.
Consistent canonical URLs prevent duplicate-content issues and consolidate ranking signals onto one address. Everything runs in your browser — nothing is uploaded.