Canonical tag

A canonical tag, also known as a canonical link or canonical URL, is a HTML element, which is in the <head> area of a website. It indicates Search engines The „original“ or „main“ version of a page is the version that Google considers to be the "original" or "main" version of identical or very similar content. This tag is used with the attribute rel="canonical" and refers to the preferred URL to be indexed.

The importance of the canonical tag for SEO

The primary function of the canonical tag is to solve problems with Duplicate content (duplicate content). Duplicate content occurs when the same or very similar content is accessible via different URLs. This can occur internally on your own domain or externally on several domains.

Such duplicates can pose challenges for search engines:

  • Waste of resources: Crawler have to search and index an unnecessarily large number of identical pages, which reduces the crawl budget.
  • Ranking dilution: If several pages have the same content, they share the „Link power“ and ranking signals instead of bundling them on a single, authoritative page. This can lead to poorer visibility in the Search results lead.
  • Incorrect indexingSearch engines may have difficulty deciding which version of a page to display in search results, or even prioritize the „wrong“ version.

By using the canonical tag correctly, a webmaster clearly signals which URL represents the authoritative version of a piece of content. This ensures that search engines index this preferred URL, consolidate the link signals and display the desired page in the search results. This optimizes crawling, protects against potential ranking losses and improves the overall search engine optimization (SEO) of a website.

Implementation and use cases

The canonical tag is used in the <head>-area of the HTML document of a „copy“ page and refers to the „original“ page. An example of the implementation looks like this:

<link rel="canonical" href="https://www.ihredomain.de/originalseite/" />

It is crucial to specify only one canonical URL per page. If several canonical tags are found in the source text, they will be ignored by search engines. In addition, the canonical tag should always refer to an absolute URL and not to a URL that triggers a 404 status code.

Common scenarios in which the canonical tag is used are:

  • Online storesVariants of products (e.g. different colors or sizes) that are accessible via separate URLs but have identical product descriptions.
  • URL parametersPages with tracking codes, session IDs or filter options that lead to different URLs with the same content.
  • Technical duplicatesIf a website is accessed via different protocols (HTTP vs. HTTPS), subdomains (www. vs. without www.) or file names (e.g. /index.html) can be reached.
  • Pagination: For paginated pages, it is usual to provide each page with a self-referencing canonical tag to prevent problems.
  • Cross-domain content: When publishing the same content on several domains, for example with Guest contributions or syndication.

Even if there is no obvious duplicate content, it is advisable to set a self-referencing canonical tag on each page. This signals Google clearly identifies the preferred version and proactively protects against unintentional duplicates due to technical factors.

Related terms on the topic
Canonical tag

XML Sitemap
An XML sitemap is a file in Extensible Markup...
WordPress
WordPress is an open source content management system...
Plugin
A plugin, often also known as an extension, add-on or additional module...
PHP
PHP, originally an acronym for „Personal Home Page“,...
Permalink
A permalink, a short form of „permanent...
Page Speed
The loading speed of a website, known as...
Page Builder
A page builder is an essential software tool that...
Mobile optimization
Mobile optimization is a fundamental process in...
Mobile-First
The term „web design“ describes a...
Meta Tag
Meta tags are HTML elements that are located in the area of a...
From our magazine

More on the topic

Abstract depiction with geometric shapes in soft colors on a dark background.
Web design trends 2025: innovation and design
A person sits at a desk and works on a computer in a dark office.
PageSpeed as a ranking factor: myths, facts and best practices
Mobile First: A smartphone in one hand shows a responsive website with city view and information.
Mobile First: Adapting your SEO strategy for the mobile world
Hand holding a symbol of equality between a man and a wheelchair user on a blue background.
Accessibility will be mandatory for many companies from June 28, 2025 (BFSG)