ServerField Keep your site running and reach more people
Checked against Google’s documentation Includes code examples Updated in November 2026

What does a canonical tag do?
How to set it up and use it for SEO with examples you can follow

A canonical tag lets you tell search engines which URL you prefer when several addresses serve the same content. See when to use one, when to use a 301 or noindex, how to handle WordPress, store filters, pagination and language versions, and how to check the result in Search Console.

Last updated November 5, 2026 Based on Google Search Central guidance By the Finite Field editorial team
https://example.com/products/shoes
A URL with ad tracking/shoes?utm_source=ad
B Sorted version of the page/shoes?sort=price
↓ rel="canonical"
✓ Preferred address https://example.com/products/shoes CANONICAL

Google treats a canonical tag as a strong signal and may choose another URL. Use the preferred address in internal links, redirects and the sitemap too.

We wrote this as independent editorial coverage using Google Search Central and the WordPress Code Reference. Search behavior can change. Check the latest documentation and your own Search Console data when you implement a change.

Use a canonical tag to tell search engines which URL you’d like them to show when several addresses serve the same or nearly the same page. Google can choose a different URL. Look for conflicting signals in the content, links, redirects, sitemap, HTTPS setup or hreflang.

The short answer

Keep duplicates with a canonical tag, move retired URLs with a redirect, and use noindex to keep a page out of search

Start by asking whether visitors still need the URL. A canonical tag names the preferred URL while letting people keep using the duplicates. Use redirects for moves and noindex for pages you want out of search.

Keep the duplicate URLs liveUse rel="canonical" to name the address you prefer.
Retire the old URLRedirect it permanently with a 301 or 308.
Keep the page out of search resultsUse noindex on a page crawlers can reach.
What to put in your code<link rel="canonical" href="CANONICAL_URL">
What it’s forName the preferred URL among duplicates or very similar pages so search signals and reporting can come together.
Where it goesIn the <head> of the HTML document. Use an HTTP header for a PDF or another non-HTML file.
How to write the URLUse the full address, including https://, so the target is clear.
How Google interprets itGoogle treats it as a strong signal and can select another URL.
Where to checkLook in the HTML source, the HTTP response and URL Inspection in Search Console.
When we checked the documentationNovember 5, 2026

A canonical tag names the preferred version of a page

“Canonical” means the standard version. When several addresses open the same or nearly the same content, the tag lets you tell search engines which URL you prefer.

In HTML, a canonical tag is a <link> element. Mark the duplicates and add a self-referencing canonical tag on the preferred page itself. That makes your choice clear when parameters or unexpected URL variants appear.

When a canonical tag helps

Several addresses lead to the same content

  • URLs with UTM tracking parameters
  • Sorting and filtering URLs
  • Print and share links
  • Some product variants
  • URLs that vary by session ID or display option
When another approach fits

The URL serves a different purpose

  • A move that takes the old address out of use
  • An admin page you want to keep out of search results
  • A page with substantially different content or search intent
  • Private content that needs access controls
  • An address for a missing or deleted page

Duplicate URLs are common

Store parameters and device-specific URLs can create duplicates during ordinary site operation. The challenge is helping search engines and your team decide which URL represents the page. Canonical tags and related settings make it easier to group crawling, search signals and reports around one URL.

Here’s what a canonical tag can do for search. It can bring signals from duplicate URLs together and help search engines understand the site. Rankings depend on more than this tag.

Which tool fits your goal?

Ask what should happen to the old address. Should it stay usable or send people elsewhere? Do you want to keep it out of search results or control whether crawlers can fetch it?

Option What it does What visitors see When it helps What to check
rel="canonical" Strong hint
Names the URL you prefer
Visitors stay on the original address. You want to keep similar pages available. Google may select another URL.
301 / 308 A permanent move
Sends the old address to the new one
Visitors automatically reach the new URL. You’re changing addresses, merging pages or moving a site. Redirect straight to the final URL to prevent chains and loops.
noindex Exclusion from search
Keeps the page out of search results
Visitors can still see the page. The page has little value in search, such as a completion screen or an internal search page. Let Google crawl the page so it can read noindex.
robots.txt Rules for crawlers
Tells crawlers which paths they can fetch
Visitors can still open the URL. You want to reduce unnecessary crawling. Use a canonical for duplicates and noindex for a reliable way to keep a public page out of search.
XML sitemap Weaker signal
Helps crawlers find the preferred URLs
Visitors see the same page. You want to give search engines a list of canonical addresses. List the same URLs you use for canonical tags and links.

Ask whether people still need the old URL

1

You’re retiring the old page and want to guide visitors to its replacement

Use a 301 or 308 to send people to the new address. A canonical is for choosing the preferred copy of a page.

2

The URL stays live and shows the same or nearly the same page

Set a canonical and use the preferred URL in internal links, the sitemap and hreflang too.

3

Visitors still need the page, but it should stay out of search

Consider noindex and let search engines crawl the page so they can read it.

4

The page has different content and serves a different search need

In most cases, point the canonical to that page itself. Save cross-page canonicals for genuinely similar content.

How to write a canonical tag with examples

Put one link element in the <head>. Set it to the full HTTPS address of the published canonical page.

Point the preferred page to its own URL

HTML example for a self-referencing canonical
<head>
  <link
    rel="canonical"
    href="https://example.com/products/shoes/"
  >
</head>

Point a duplicate at the preferred URL

https://example.com/products/shoes/?utm_source=newsletter is a tracking URL. If it shows the same content, point its canonical tag to the address without the tracking parameter.

HTML example for a duplicate with a query parameter
<!-- In the head for /products/shoes/?utm_source=newsletter -->
<link
  rel="canonical"
  href="https://example.com/products/shoes/"
>

Set the canonical for a PDF with an HTTP Link header

For files without an HTML <head>, including PDFs and other downloads, use the HTTP response Link header to specify the canonical URL.

HTTP example for a PDF canonical
Link: <https://example.com/guides/canonical/>; rel="canonical"

Six checks before you add the tag

01

Put a single tag in the head

Google may skip a canonical in the body. Check that the CMS, theme and SEO plugin aren’t each adding their own tag.

02

Write the whole address

Include the scheme, hostname and path. Follow the same rules for HTTPS, www and trailing slashes everywhere.

03

Choose a final URL that returns 200

Use a page that visitors and crawlers can reach directly, without signing in. Check that it returns 200, contains the expected content and permits indexing.

04

Group pages with the same or almost the same content

Google is less likely to adopt your choice if the pages serve different search needs or cover different subjects.

05

Use a self-referencing tag by default

On an indexable page, point the canonical to its own preferred URL.

06

Keep the canonical stable when JavaScript runs

Put the tag directly in the server’s HTML when possible. Check that the rendered page still points to the same URL.

Use the address before the fragment. In https://example.com/page/#section, the #section part points within the page. Leave it out of the canonical URL.

How Google chooses a canonical URL

Google weighs a number of signals. Its documentation lists redirects and rel="canonical" as strong signals. A URL in the sitemap is a weaker signal.

Strong hint

Permanent redirect

Send each retired address straight to its replacement so visitors and crawlers both reach it.

Strong hint

rel="canonical"

Give Google the preferred address while keeping the page available. Google can still choose a different version.

Weaker signal

XML sitemap

List the preferred pages to help Google find them. Use canonical tags or redirects to reinforce that choice where needed.

Point each signal at the same URL

  • Link to the standard address without tracking parameters.
  • List only canonical addresses in the XML sitemap.
  • Use HTTPS after you’ve completed the move to HTTPS.
  • Redirect straight to the URL named in the canonical.
  • Keep each language version’s canonical and hreflang in agreement.
  • Use the preferred address in Open Graph tags, structured data, breadcrumbs and shared links.

What a canonical tag can help with

What it helps you do
  • Bring search signals for duplicate URLs together.
  • Suggest the address you want people to see in search results.
  • Make it easier to read reports in Search Console.
  • Cut down crawling of duplicate addresses so important pages get more attention.
Results that depend on other factors
  • Which address Google ultimately shows
  • Whether rankings improve
  • How well the page serves readers
  • How soon crawling and indexing reflect the change

Choosing canonicals in common situations

Decide what each page offers people and whether it deserves to show up in search. Pay particular attention to store pages, pagination and language variants, where one rule can affect many URLs.

Ads and tracking

URLs with UTM tracking

?utm_source= can leave the page content unchanged. In that case, set the canonical to the address without the parameters and use it in your own links when possible.

Sort order

Sort by price or date added

If the same products are simply in a different order, you can choose the main category URL as canonical. Give a sorted view its own policy if it serves a distinct search need.

Store filters

Color, size and brand filters

If there are endless combinations and no demand for them in search, review crawl rules and internal links as well as canonical tags. A popular filtered view may deserve its own page.

Product options

Different colors or capacities

Use the main product address when the differences are small and one page serves customers well. If pictures, price, stock or search intent differ, consider a distinct URL with a self-referencing canonical.

Worth checking

Paginated lists

Give each page in the series its own canonical. /category/?page=2 should point to its own URL.

Language versions

Pages in Japanese, English and Chinese

In most cases, use a self-referencing canonical for each language and connect equivalent pages with reciprocal hreflang. Pointing a Japanese page’s canonical to the English page can take the Japanese version out of search.

Downloadable resources

An HTML article and a PDF copy

To make the HTML article the main version, point the PDF’s HTTP Link header at it. If the PDF should appear on its own in search, treat it as a separate resource.

Moving a site

From one domain to another

If the old address can be retired, send it to its matching new URL with a direct 301 or 308. Set a self-referencing canonical on the new page, then update links and the sitemap.

Keep pages that serve different needs separate. Use distinct addresses for pages that readers expect to differ, such as services in Tokyo and Osaka or guides for beginners and businesses. This still applies when parts of the wording match.

How to check a canonical tag in WordPress

WordPress can output a canonical on individual posts and pages. A theme or SEO plugin can add one too. Check which part of your setup generates the tag so you can keep just one.

Start by counting the tags in the HTML source

1

Open the page you want to check

Try a post, a page, a category, a tag and a custom post in your browser.

2

Choose View Page Source

Start with the HTML the server returned. In View Page Source, look for rel="canonical".

3

Check the address and how many tags there are

Look for one tag per page. Make sure the HTTPS scheme, domain, trailing slash and path match the preferred URL.

4

Turn off the extra tags

Let one theme, SEO plugin or piece of custom code generate the canonical. Disable the duplicate outputs.

What to check if you use an SEO plugin

  • Keep the automatically generated self-referencing canonical on a regular post unless you have a reason to change it.
  • Apply your site’s policy to categories, tags, authors and date archives.
  • Review custom post types and custom taxonomies too.
  • Look for addresses left over from staging or an old domain.
  • Check that HTTPS, www and trailing slashes follow your WordPress settings.
  • With a multilingual plugin, open the pages and check canonical tags alongside hreflang.
Find out what changes the output before adding a plugin. Check WordPress settings, your reverse proxy, caches, theme, plugins and the CDN for mismatches. Look at the HTML source and the HTTP response to see what actually went out.

How to verify your canonical setup

Check the URL you declared and the one Google picked. A correct-looking tag can still be outweighed by what the content and links tell Google.

1. Look in the HTML source

Choose View Page Source in your browser and search for rel="canonical". Look for a single tag inside the head. Check the original HTML along with what the browser shows after JavaScript runs.

2. Read the HTTP response with curl

Shell commands to check the HTML and HTTP headers
# Look for the canonical tag in the original HTML
curl -sL "https://example.com/page/" | grep -i 'rel="canonical"'

# Inspect the HTTP status, any redirects and the Link header
curl -sIL "https://example.com/file.pdf"

3. Open URL Inspection in Search Console

In the indexed result, compare “User-declared canonical” and “Google-selected canonical.” If they differ, use these checks to make your signals agree.

What to inspectWhat to aim forWhere to look if there’s a mismatch
What the pages containThe content matches or is nearly the same as the canonical page.Compare the title, text, main image, structured data and what readers are trying to find.
HTTP responseThe preferred URL opens directly and returns 200.Look for a redirect, a 404, a 5xx error, a login requirement or a soft 404.
Links within your siteYour site consistently links to the canonical address.Check navigation, breadcrumbs, related articles and language links.
Sitemap entriesThe sitemap lists only canonical URLs.Remove duplicate and retired addresses from the sitemap.
Indexing rulesThe preferred URL can be indexed.Check noindex, robots.txt and any X-Robots-Tag headers.
Languages and regionsCanonical tags and hreflang agree.Check self-references, return links and language codes.

4. Give Google time to crawl and assess the changes

After you update links and the sitemap, give Google time to recrawl and review the group of pages. You can request indexing for important URLs in URL Inspection. One request per key page is enough to get started.

Give Google time to recrawl. Google’s troubleshooting guide says a page can remain in a group of duplicates for up to about two weeks after a content change. The timing of the next crawl and review can vary.

Common canonical mistakes and how to fix them

01

The tag ended up in the body

Move it into the head. Check closing tags and invalid markup in your template.

02

The page has several canonical tags

Check the CMS, theme, plugins and HTTP headers. Choose one place to declare the preferred URL.

03

The target returns 404, uses noindex or redirects

Point it straight to a page that returns 200 and can be indexed.

04

The canonical points to different content

If the page serves its own search intent, give it a self-referencing canonical and improve the content on that page.

05

Links or the sitemap point somewhere else

Send redirects, canonical tags, links and sitemap entries to the same preferred URL.

06

robots.txt keeps Google from crawling the duplicate

Let Google fetch the page so it can read the canonical or noindex rule. Use crawlable pages when your goal is canonicalization.

07

Every page in a list points to page one

Each page shows different items. Give later pages their own self-referencing canonicals.

08

JavaScript replaces the canonical with another URL

Set the canonical in the server template and keep the URL the same after rendering.

09

All language versions point to one language

Give each translated page its own canonical. Use hreflang to connect the equivalents.

10

Every URL with a query string uses noindex

That can remove useful filtered pages from search. Decide what each parameter means before you choose an indexing rule.

Common questions about canonical tags

Does Google always show the URL I set as canonical?

Google may choose a different URL. The tag is a strong hint and Google checks the content, redirects, links, sitemap and HTTPS setup before making its choice.

Should every page point its canonical back to itself?

Google treats this as optional. On pages you want indexed, a self-referencing tag makes your preference clear if people find the page through a variant address or a parameter.

Can a page have both a canonical tag and noindex?

Usually, pick the one that serves your goal. Use a canonical to name the preferred page in a group, or use noindex to keep the current page out of search. Together, those signals can conflict.

Can I put a relative URL in the tag?

Google can sometimes resolve a relative URL. It recommends using the full address. Include https:// and the public hostname to avoid accidentally pointing to staging or using the wrong base URL.

Can my canonical point to a URL that returns a 301?

Point directly to the final address that returns 200. That gives Google a clear signal and saves a redundant hop.

Should page two of a list point its canonical to page one?

Give every page its own canonical. Page two has different products or articles, so it points to page two. Do the same for page three and later pages.

What can I do if Google chooses a different canonical?

Check the content, HTTP status, links, sitemap, redirects, noindex and hreflang. Fix what conflicts with your preferred address, then give Google time to crawl again and recheck it in URL Inspection.

Can canonical tags help with crawl budget?

They can tell Google which duplicate represents a page. For a filter that can generate endless addresses, also review URL design, links, how parameters are created and robots.txt rules.

Official sources we used

We checked these primary sources on November 5, 2026.

Make the preferred URL consistent across your site

Use a canonical when duplicate or very similar pages still need to be available. Use a permanent redirect when you retire an old address, and noindex when a page should stay out of search.

  • Give a page its own canonical if you want it indexed.
  • Put one tag in the head with the full HTTPS address.
  • Point it at a final URL that returns 200 and can be indexed.
  • Use the same preferred URL in links, sitemaps, redirects and hreflang where they refer to that version.
  • Give paginated pages and each language version their own canonicals.
  • In Search Console, compare your declared canonical with Google’s choice.

Start with a list of duplicate addresses. Decide which to keep, which to retire, which to keep out of search and which are worth developing as separate pages. Then add canonical tags where they fit.

Finite Field Editorial Team We use primary sources for our guides on SEO, hosting and website operations. We focus on what you can decide, implement and check yourself. We update the guides when we verify a change in the specifications.

Website Development and SEO Setup

Talk to Finite Field about your website and SEO

Set the tag, URL structure, redirects, internal links and sitemap around the same preferred address. We can review the current site, design and build the changes, help with a move and check Search Console after launch.

Free first consultation Help from the planning stage WordPress and Go projects Planning for an SEO migration
  • Design and build new sites, landing pages and WordPress updates.
  • Plan URL changes, 301 redirects, canonical tags and the sitemap together.
  • Check site speed, structured data, internal links and Search Console.
Contact

Tell us what you’d like to fix first

Send your site’s address, CMS and the Search Console result you’re concerned about. We’ll help work out what to check and how to proceed.

Tell us about your site and your goals. You can decide whether to go ahead after we talk.