Canonical URL Generator
Turn a page URL into a copy-ready rel=canonical link tag. Add https:// automatically, and control lowercase and trailing-slash output.
On this page
A canonical URL generator writes the <link rel="canonical" href="…" /> tag that tells search engines which URL is the authoritative one. Paste a page address, press Generate tag, and copy a tag ready to drop into the head of the page.
What you type and what you get
Enter example.com/news/summer-sale and the tool returns <link rel="canonical" href="https://example.com/news/summer-sale" />. Leave off the scheme and https:// is added for you. The generated tag appears directly under the URL box, with a copy icon beside it.
Options before you generate
- Lowercase the URL normalizes the host and path to lowercase, which keeps the canonical consistent when a site serves mixed-case URLs.
- Keep trailing slash if present preserves the slash on paths that already end with one, so the canonical matches the exact variant the site publishes.
Query strings and fragments are kept as they are typed, because a canonical is most honest when it mirrors the real page URL. Invalid hostnames and empty input are stopped with a validation message instead of producing a broken tag.
Generating and using the tag
- Type or paste the page URL, with or without the scheme.
- Set the lowercase and trailing-slash options you need.
- Press Generate tag and copy the result.
Paste the copied line between the <head> and </head> tags of the page. When several URLs serve the same content, this single tag is often enough to stop search engines treating them as duplicates.