URL Parser & Query String Builder

Break a URL into its parts, or build one from components and query parameters

Paste a full URL above to break it down and edit its query parameters

About this tool

The URL Parser breaks any URL down into its component parts — protocol, credentials, host, port, path, query parameters, and hash — and displays them individually, making it easy to see exactly what a long or unfamiliar URL actually contains. The query string side works as a live builder: parameters are shown as editable rows, so you can add, remove, or edit them and watch the full URL rebuild in real time. A one-click button adds the standard five UTM parameters (utm_source, utm_medium, utm_campaign, utm_term, utm_content) for building campaign tracking links without typing them by hand. Parsing uses the browser's native URL API, so behavior matches exactly what your JavaScript code would see when constructing a `new URL()` — no surprises when you copy the result into application code.

When to use it

  • Decomposing a long URL with tracking parameters to see what data it's actually carrying
  • Building a UTM-tagged marketing link without hand-editing a query string
  • Debugging why a URL isn't parsing the way your application code expects
  • Adding, removing, or renaming query parameters on an existing URL without starting from scratch

Tips

  • Use "Add UTM params" to quickly scaffold the five standard utm_* parameters, then edit their values for your campaign.
  • The parsed breakdown updates live as you type — useful for spotting an unexpected extra parameter or malformed segment.
  • Editing a query parameter's key or value immediately rebuilds the full URL shown at the bottom, so you can copy it as soon as it looks right.

Frequently asked questions

Can I edit the host or path directly, not just query parameters?

The protocol, host, path, and other base components are shown as a read-only breakdown for inspection. To change them, edit the full URL text field directly — only the query parameters have a dedicated editable table.

What happens if I paste an invalid URL?

The parser uses the browser's native URL API, so it flags anything that isn't a valid absolute URL (missing protocol, malformed syntax) rather than guessing at a partial parse.

Are UTM parameters the only thing the query builder supports?

No — the UTM button is a shortcut for a common case. You can add, edit, or remove any query parameter by key and value, not just UTM ones.

Related tools

🥷 ToolNinja