Canonical URL
A canonical URL is the preferred version of a page that you ask search engines to index when several URLs show the same or very similar content.
The same content often lives at several addresses: with and without tracking parameters, with different sort orders, or with and without a trailing slash. A canonical tag, written as a link element with rel=“canonical” in the page head, tells search engines which one is the main version.
In more detail
Canonicals are a strong hint, not a command. Google may choose a different canonical if signals conflict, for example if internal links, sitemaps and redirects point elsewhere. Every indexable page should have a self-referencing canonical. Common mistakes include pointing all paginated pages to page one and canonicalising to URLs that redirect or are noindexed.
Why it matters
Clear canonicals consolidate ranking signals on one URL instead of splitting them across duplicates, and stop search engines wasting effort on near-identical pages.
A clothing store's product appears at /shirts/blue-oxford and /sale/blue-oxford. Both pages carry a canonical pointing to /shirts/blue-oxford, so search engines rank one strong page instead of two weak ones.