# Canonical Tag Builder

URL: https://phishdestroy.io/developer-tools/canonical-tag-builder
Category: General dev
Where it runs: Runs locally (nothing you enter is uploaded)

Generate the rel=canonical link element that tells search engines which URL is the main version of a page.

## Example input

Preferred product URL

```
https://example.com/products/blue-widget
```

A link tag with rel="canonical" and href="https://example.com/products/blue-widget", ready for the head of the page.

## FAQ

### When does a page need a canonical tag?

When the same content is reachable at several URLs, for example with tracking parameters, with and without www, or over http and https. Put the tag on each duplicate, pointing to the URL you want indexed; a self-referencing canonical on that main page is fine too.

### Does the tool check the URL?

No. It wraps whatever you type in the tag. Use an absolute https:// URL with the exact host, path and trailing slash you want indexed, and keep in mind that search engines treat the canonical as a strong hint, not a rule.

### Is the URL sent anywhere?

No. The tag is built in your browser, and nothing is uploaded.

## Related tools

- [Meta Robots Tag Builder](https://phishdestroy.io/developer-tools/meta-robots-builder)
- [Sitemap XML Generator](https://phishdestroy.io/developer-tools/sitemap-xml-generator)
- [Open Graph Meta Tag Generator](https://phishdestroy.io/developer-tools/open-graph-meta-generator)
- [robots.txt Generator](https://phishdestroy.io/developer-tools/robots-txt-generator)
- [URL Parser](https://phishdestroy.io/developer-tools/url-parser)

All tools: https://phishdestroy.io/developer-tools
