Command Palette

Search for a command to run...

UR

URL Parser

Break any URL into its parts - scheme, host, port, path, query, and fragment - and read the query string as a clean, decoded key-value table.

Normalised URL
https://john:[email protected]:8443/catalog/shoes?color=red&size=42&size=43&q=trail%20runner#reviews
Components
Schemehttps
Originhttps://shop.example.co.uk:8443
Usernamejohn
Passwords3cret
Hostshop.example.co.uk:8443
Hostnameshop.example.co.uk(TLD: .uk)
Port8443(explicit)
Path/catalog/shoes
Query?color=red&size=42&size=43&q=trail%20runner
Fragment#reviews
Path segments (2)
0: catalog1: shoes
Query parameters (4)
KeyValue (decoded)
colorred
size42
size43
qtrail runner
Category:url
Mode:Offline
Version:1.0.0
Access:Free

What is the URL Parser?

URL Parser interface on Toolz.dev - Break any URL into its parts - scheme, host, port, path, query, and fragment - and read the query string as a clean, decoded key-value table.

The URL Parser takes any web address and splits it into the parts a browser sees: the scheme, the credentials, the host and port, the path, the query string, and the fragment. Instead of squinting at a long link full of percent signs and ampersands, you get a labelled breakdown and a decoded table of every query parameter, in the order they appear.

A URL is more structured than it looks. It follows the WHATWG URL standard - the same rules browsers use - with a defined grammar for each component. Reading it by eye is error-prone: a stray question mark, an encoded slash, or a repeated parameter is easy to miss, and those are exactly the details that break routing, tracking, or an API call. This tool uses the browser's own URL engine, so what you see is what the browser would parse.

Everything happens in your browser. Paste a link with tracking parameters, an API endpoint with a dozen query values, or a bare domain, and the parser resolves it locally. Nothing is uploaded, so it is safe to inspect URLs that contain tokens, session IDs, or internal hostnames. It works offline once the page has loaded.

Parsing follows the WHATWG URL standard, which is what browsers implement, and it is more forgiving than people assume: it will normalise a missing scheme, collapse dot segments in a path, and lowercase the host, because hosts are case-insensitive while paths are not. Two areas repay attention. Internationalised domains are stored as punycode, so a host in Cyrillic or Chinese displays in its own script and travels as an ASCII string beginning xn--, and those two forms are the same host. And percent-encoding is only meaningful in context: a slash encoded as %2F inside a path segment is data rather than a separator, which is exactly why decoding a whole URL in one pass and then re-parsing it gives the wrong answer.

A quick check of what this online URL parser returns: paste example.com/pricing?plan=pro&plan=team&q=trail+runner. It notes that https:// was assumed, lists the hostname as example.com with TLD .com, and shows port 443 marked as the scheme default. The Query parameters table has three rows, plan = pro, plan = team and q = trail runner, because a plus sign in a query means a space. The JSON copy button groups the repeated key as {"plan": ["pro", "team"], "q": "trail runner"}, ready to paste into a test.

How to use the URL Parser?

1

Paste your URL

Drop in a full URL such as https://[email protected]:8443/path?q=1#top. A bare domain like example.com/page works too - the parser assumes https:// when no scheme is given.

2

Read the component breakdown

Scheme, host, hostname, port, path, search, and fragment are listed separately, each with a copy button, plus the effective port and top-level domain.

3

Inspect the query parameters

Every key-value pair from the query string is shown decoded in a table, in original order, with repeated keys kept as separate rows.

4

Copy what you need

Copy any single component, the decoded query as JSON, or the whole normalised URL to reuse elsewhere.

Key Features

Full Component Breakdown

Scheme, username, password, hostname, port, path, query, and fragment are each isolated and labelled, matching the WHATWG URL model browsers use

Decoded Query Table

Query parameters are parsed and percent-decoded into a readable table, preserving order and keeping repeated keys as distinct rows instead of collapsing them

Default Port Detection

When a URL omits its port, the parser shows the effective port for the scheme - 443 for https, 80 for http, 22 for ssh - and flags that it is the default

Scheme-Optional Input

Paste a bare host like example.com/pricing and the parser assumes https:// so you do not have to type the scheme every time, and tells you it did so

Frequently Asked Questions

A URL has a scheme (https), optional credentials (user:pass@), a host (example.com) with an optional port, a path (/blog/post), an optional query string (?id=42), and an optional fragment (#section). This parser separates and labels each one.

Comments

0 comments

0/2000 characters

No comments yet. Be the first to share your thoughts!

url parseronline url parserurl parser onlineparse url onlinequery string parserurl componentsurl breakdownparse query parametersurl structureurl decoderget url parameters