Canonical tag

Updated July 15, 2026

Definition

A canonical tag is a rel="canonical" link element or HTTP header that indicates the preferred URL for a duplicate or closely similar resource.

On this page
  1. Canonical tag syntax
  2. HTML element and HTTP header implementations
  3. Canonical tag vs canonical URL
  4. Self-referencing canonical tags
  5. Cross-domain canonicals
  6. How search engines evaluate canonical signals
  7. Canonical tags and duplicate content
  8. Canonical tags for parameter and filtered URLs
  9. How to test canonical tags
  10. Common canonical mistakes

Canonical tag syntax

For an HTML page, the canonical link element belongs in the head and points to the preferred absolute URL. <link rel=“canonical” href=“https://seoenergy.org/en/terms/canonical/”>

Use one clear canonical destination. Multiple conflicting annotations make the preference harder to interpret. The target should be accessible, indexable, and equivalent enough to represent the source page. A canonical to an unrelated page is not a substitute for removing or redirecting the source.

HTML element and HTTP header implementations

HTML documents normally use the link element. Google accepts it only in a valid head section, so a canonical placed in the body may be ignored. Non-HTML files can send a Link response header. This is useful when a PDF, document, or other supported file should consolidate with a preferred version. Link: <https://seoenergy.org/en/terms/canonical/>; rel=“canonical”

Do not send conflicting HTML and HTTP canonicals for the same resource. Pick the method that fits the content type and can be maintained reliably.

Canonical tag vs canonical URL

The canonical tag is an implementation that declares a preference. The canonical URL is the representative URL selected for a group of duplicate or similar pages. A site owner can declare one URL while a search engine selects another. The selected canonical reflects the full signal set, not the tag alone. Keep these terms separate in reporting. A valid tag does not prove that the declared target became the search-engine-selected canonical.

Self-referencing canonical tags

A self-referencing canonical points a page to its own preferred URL. It can make the intended address explicit when tracking parameters, alternate paths, or copied markup create other versions. Google recommends self-referential canonicals, but they do not repair inconsistent internal links or redirect rules. The rest of the site should also use the preferred URL. Generate the value from trusted routing data. A template that copies the wrong hostname, locale, or parameter can miscanonicalize an entire section.

Cross-domain canonicals

A canonical can point to an equivalent page on another domain. Publishers use this when the same article or resource is intentionally available on more than one site. The source site gives the target a strong preference signal, but the search engine still evaluates similarity and other evidence. The target should contain substantially equivalent content. A cross-domain canonical does not redirect visitors. If users and all signals should move to the new domain, a permanent redirect is usually clearer.

How search engines evaluate canonical signals

Google treats rel=canonical as a strong signal, not an absolute directive. Permanent redirects are also strong. Sitemap inclusion is weaker, while consistent internal links help reinforce the preferred URL.

  • The pages contain duplicate or closely similar primary content.
  • The declared target returns a stable indexable response.
  • Redirects, canonicals, sitemaps, and internal links agree.
  • Language and mobile annotations point within the correct canonical set.
  • The preference does not conflict with HTTPS or other site-level signals.

No single checklist forces selection. The goal is a coherent signal set that matches the actual site architecture.

Canonical tags and duplicate content

Canonicalization lets search engines cluster duplicate URLs and consolidate signals toward a representative page. It is useful when alternate URLs must remain available to users. Use a permanent redirect instead when an old URL no longer needs to exist. Use noindex when a page should not appear in search and is not simply an alternate version to consolidate. Canonical tags are not crawl blocks. Search engines may continue requesting duplicate URLs to verify content and signals.

Canonical tags for parameter and filtered URLs

Parameter pages can represent tracking variants, sorting states, useful filters, or genuinely different content. They should not all follow one automatic rule. A close duplicate may canonicalize to the clean category URL. A useful filtered landing page with distinct demand and content may need a self-canonical instead. Check that the target represents the source. Canonicalizing every filtered page to a broad category can discard pages that satisfy a separate search intent.

How to test canonical tags

  1. Request the final URL and inspect both HTML and response headers.
  2. Confirm that exactly one canonical preference is present.
  3. Validate the absolute target and its status, indexability, and content similarity.
  4. Compare internal links, sitemap URLs, redirects, hreflang, and mobile annotations.
  5. Use URL Inspection to compare the user-declared and Google-selected canonical.
  6. Crawl representative templates for systematic conflicts.

Common canonical mistakes

  • Placing the HTML canonical outside the head.
  • Using relative, malformed, redirected, blocked, or erroring targets.
  • Publishing several conflicting canonical annotations.
  • Pointing different-language pages to one language without the right relationship.
  • Canonicalizing unrelated or meaningfully different content together.
  • Listing duplicate URLs in sitemaps while canonicals point elsewhere.
  • Changing canonicals with JavaScript in a way that conflicts with source HTML.

FAQ

What is a canonical tag?

It is a rel=canonical link annotation that indicates the preferred URL for duplicate or closely similar content.

Is a canonical tag a directive?

No. Search engines treat it as a strong signal and may select a different canonical when other evidence conflicts.

Should every page have a self-referencing canonical?

Google recommends self-referential canonicals, and they are useful when templates can create alternate URL versions. They should still match the real preferred route.

Can a canonical tag point to another domain?

Yes. A cross-domain canonical can signal that an equivalent page on another domain is preferred.

Why might Google ignore a canonical tag?

The target may be inaccessible, non-indexable, dissimilar, or contradicted by redirects, internal links, sitemaps, HTTPS, hreflang, or other signals.

View all terms