All Tools

Canonical URL Generator

Build canonical, hreflang, and alternate link tags with validation. Prevent duplicate content issues and tell search engines which version of a page is authoritative.

Canonical URL

Hreflang Tags (optional)

Add language/region alternates so search engines serve the right version to users.

Quick add:

Alternate Links (optional)

Generated Link Tags

<link rel="canonical" href="https://example.com/page" />

Canonical URL Best Practices

  • Self-referencing canonicals: Every page should have a canonical tag, even if it points to itself.
  • Use absolute URLs: Always include the full URL with protocol (https://) in canonical tags.
  • Consistent protocol: Use HTTPS consistently. Don't mix HTTP and HTTPS in canonical and hreflang URLs.
  • Hreflang reciprocity: If page A links to page B with hreflang, page B must link back to page A.
  • Include x-default: Always add an x-default hreflang tag to specify the default or fallback page.
  • Avoid query parameters: Canonical URLs should be clean, without tracking parameters or session IDs.

Features

  • Canonical tag generator
  • Hreflang tag builder
  • Alternate link tags
  • URL validation
  • Duplicate content prevention
  • Copy to clipboard

SEO Tips

  • Keep title tags under 60 characters
  • Meta descriptions should be 150-160 characters
  • Include your primary keyword naturally
  • Make each page's meta unique