deftools.io Developer Tools

URL Parser

Parse any URL into its components: protocol, host, path, query params, hash. Edit fields and rebuild a URL, or share a parsed URL via deep-link.

Try an example

About this tool

URL Parser takes any URL and splits it into its components: protocol, hostname, port, pathname, query parameters, and hash fragment. It also shows the decoded version of each part — so %20 becomes a space and %2F becomes a slash.

Switch to Build mode to do the reverse: fill in protocol, host, port, path, auth, and query parameters and the tool assembles a valid, properly-encoded URL. Example: host api.example.com, path v2/search, param q=hello world produces https://api.example.com/v2/search?q=hello%20world.

Useful when debugging redirect URLs, constructing API requests by hand, decoding tracking links, or understanding why a URL isn't behaving the way you expect — especially with encoded characters, multi-value query parameters, or non-default ports.

FAQ

What is the difference between hostname and host?

Hostname is the domain only (e.g. example.com). Host includes the port if one is specified (e.g. example.com:8080). The parser shows both fields so you can see at a glance whether a non-standard port is in play.

How are duplicate query parameters handled?

The parser lists every key-value pair individually, including repeated keys. For example, ?a=1&a=2 shows two rows for "a". The "Copy as JSON" button merges duplicates into an array.

Does it support mailto: and other special schemes?

Yes. mailto:, tel:, ftp:, ws:, wss:, and file: URLs all parse correctly. In Build mode, mailto: and tel: produce scheme-only URLs (no //host) with their query-string body.

Why does my URL need https:// in front?

If you paste a bare domain like example.com/path the tool prepends https:// so the browser's URL parser accepts it. You can also paste protocol-relative URLs starting with //.

Can I share a parsed URL with someone?

Yes. Click the "Share link" button next to the input — it copies a link to this tool that pre-fills the URL field with your input and re-parses it on load. The page URL also updates as you type (with a short debounce), so you can bookmark or copy the address bar at any point.

More developer tools

Copied!