Skip to content

Tools/URL tools

URL tools

Parse URLs, edit UTM params, and slugify paths. Nothing is uploaded.

Loading tool…

How to use URL tools

  1. 1. Paste a URL. Must be absolute (include https://).
  2. 2. Read parts. Host, path, query, hash.
  3. 3. Fill UTM fields. Empty campaign is omitted.
  4. 4. Copy. Local only.

About this tool

URLs are easy until someone hands you a tracking link with six query params. Parse first, then rebuild. Slugs are for path segments, not for full URIs.

WHATWG vs RFC 3986

The browser URL class is WHATWG. It is what fetch uses.

UTM

utm_source, utm_medium, utm_campaign are the usual trio. They are just query keys.

Code examples

URL

new URL(href).searchParams.get("q")

Frequently asked questions

Related tools

All tools