Web Tools

Canonical URL Generator

All tools

Point search engines at the one version of a page you want indexed.

How it works

Four simple steps

1

Enter the preferred URL

Use the absolute http or https address.

2

It gets validated

Other schemes and relative paths are rejected.

3

Get the link tag

A rel=canonical element appears with the normalized URL.

4

Paste into the head

Copy or download the tag for your template.

Canonical URL Generator

About Canonical URL Generator

An online store serves the same product page at four addresses because of color filters and sort parameters. Search engines will pick one on their own unless you say which version is preferred, and the canonical link is how you say it.

Type or paste the preferred address and the tool returns a single link element: rel="canonical" with your URL in the href. Before writing it, the URL is parsed and must use http or https; anything else, including a relative path, produces an error instead of a tag. The parser also normalizes the address, so the host is lowercased, spaces and other unsafe characters are percent-encoded and a bare domain gains its trailing slash. The tag appears in a preview box and in the output, ready to copy or download as canonical.html.

Choose the canonical deliberately. It should be the version that returns a 200 status, is linked internally and matches your trailing-slash and www conventions exactly. Pointing every paginated page at page one, or naming a URL that redirects, sends mixed signals that search engines often ignore. If you are cleaning up many variants first, the URL normalizer gives a consistent starting form, and the full meta tag generator writes the canonical alongside title and description tags.

The tag is built from your input inside the browser. The URL is checked for syntax only and is never fetched.

Keyboard shortcut

Ctrl Enter - Run tool
FAQ

Frequently asked questions

See all FAQs

Answers for this tool. For site-wide help, open the FAQ hub.

Yes, a self-referencing canonical is a common safeguard. It tells crawlers which form to prefer when the page is reached with tracking parameters or different letter case.

Yes. Cross-domain canonicals are allowed, for example when an article is syndicated on a partner site. The tag format is the same; just enter the other domain's URL.

A bare origin such as https://example.com is normalized to https://example.com/ because the root path is always "/". Paths below the root are left exactly as you typed them.

View more FAQs

Related tools

View all

A11y Annotator

Audit HTML for alt text, labels, headings, and ARIA gaps with fix suggestions.

Open

Bundle Size Estimator

Compare approximate gzip sizes for popular npm packages offline.

Open

Import Cost Estimator

Estimate approximate import cost from pasted import lines and package names.

Open

URL Parser

Break down any URL into parts.

Open

Explore 321 free tools

Everything you need as a developer, marketer or creator - in one beautiful place.

Browse all tools