Navigation

Canonical Tag Generator

Draft canonical and optional language-alternate tags.

Draft tags for your page head. Destination content, redirects and reciprocal language alternates are not checked.

Hreflang Tags (optional)
No hreflang tags added yet. Click "Add Language" to specify language-specific URLs.

Canonical and alternate tags

Complete the fields to see your output.

Share

Last reviewed: Β· Testing methodology

How to use

Enter validated absolute URLs to copy tags for your page head.

1

Enter the preferred URL

Use the actual absolute URL of the page you want to identify.

2

Copy the link element

Copy the generated markup into the appropriate head template in a review environment.

3

Check the deployed page

Ensure a single consistent canonical, matching redirects, internal links and sitemap entries.

Limits and questions

Inputs are processed in your browser. Analytics and advertising can make separate network requests.

A result you can check

For https://example.com/article/, inspect that the link’s href is that complete preferred URL.

Before using the result

This generator does not crawl your site or decide which page is the best canonical.

Frequently asked questions

Will a canonical force Google to use this URL?
No. Google can select another canonical when other signals disagree.
Does it replace a redirect?
No. Visitors remain on the current URL. URL migrations and duplicate handling require a separate plan.