Create an absolute rel=canonical URL and link element for a page.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Scheme, host, path, query, fragment, and trailing-slash policy are normalized, then an absolute canonical link or header value is emitted. Fragments are removed because they identify locations within a document.
URL: https://example.com/blog/my-article Include link: true Include header: false
<!-- Canonical URL --> <link rel="canonical" href="https://example.com/blog/my-article">
CMS templates, faceted pages, and SEO audits build canonical signals.