OnlineTextLab
Esc

URL Parser

Every part of a URL laid out and decoded, with repeated parameters and credentials flagged.

URL parts

Each part of the URL appears here, with query values decoded.

Runs on your device. Your files and text are not uploaded.

About URL Parser

Long URLs are hard to read. A tracking link or an OAuth redirect can have dozens of parameters, percent escapes inside percent escapes, and a fragment hidden at the end. Paste one here and it is split into a table, with the query values and path segments decoded so you can read them.

It also catches things that are easy to miss by eye. If a parameter name appears twice, that gets flagged, since servers differ on which value they use. A password in the address gets a warning too, and the tool points out that the part after # never reaches the server.

How it works

The address goes to your browser's own URL parser, the same WHATWG standard code that handles links on the page, so what you see here matches how a browser reads it. This has side effects worth knowing: the host is lowercased, an international name becomes its Punycode form, .. segments are resolved and a default port such as 443 disappears.

If there is no scheme, https:// is assumed and a note says so. Query values are decoded with the form rules, so + means a space, while path segments use plain percent decoding, where + stays as it is. Nothing is fetched: this page reads the text of the URL and never contacts that address.

How to use URL Parser

  1. Paste one address into the URL box, or press Try an example.
  2. Read the table of parts. Notes appear beside anything unusual.
  3. Look under Query parameters, decoded and Path segments, decoded for the readable values.
  4. Press Copy, or Download to save url-parts.txt.

A URL with most of the parts

Input
https://user:[email protected]:8443/catalog/caf%C3%A9%20menu/item?id=42&tag=new&tag=sale&q=hot+drinks#reviews
Output
Protocol: https:
Origin: https://shop.example.com:8443
Host: shop.example.com:8443
Hostname: shop.example.com
Port: 8443
Username: user
Password: s3cret
Pathname: /catalog/caf%C3%A9%20menu/item
Search: ?id=42&tag=new&tag=sale&q=hot+drinks
Hash: #reviews

Query parameters:
id: 42
tag: new
tag: sale
q: hot drinks

Path segments:
1. catalog
2. café menu
3. item

On the page, tag is flagged as repeated, and the password gets a warning about logs and browser history. See how q decodes + to a space and the second path segment becomes readable.

When it helps

  • Reading what a marketing link with UTM parameters is really sending
  • Checking the redirect_uri and state values in an OAuth login URL
  • Finding a duplicated query parameter behind an odd server response
  • Confirming which port and host a connection string or webhook address points to

Tips for a better result

  • Origin is what browsers compare for CORS and cookies, so it is the row to check when a cross-origin request fails. It includes the scheme and the port, not only the host.
  • When a decoded value still has % escapes in it, the URL was probably encoded twice. Decode it again with URL Encode Decode.
  • A URL nested inside a redirect parameter can be pasted in on its own after this page decodes it.

Good to know

  • It reads one URL at a time, so a line with spaces and no scheme is refused rather than guessed at.
  • Because the browser parses it, results are normalized. You cannot use this to see the exact original spelling of a host.
  • It does not open the address, so it cannot tell you whether a link works or where it redirects. The Redirect Chain Checker does that.
  • Query values are decoded as UTF-8. Older encodings can come out as replacement characters.

Questions people ask

What is the difference between Host and Hostname?

Hostname is the name alone. Host adds the port when one is written in the address, as in shop.example.com:8443.

Why is the port shown as default?

No port was written, or the one written is the standard for that scheme, such as 443 for HTTPS. The URL standard drops it in that case, and a note tells you which port applies.

Is the part after # sent to the server?

No. The fragment stays in the browser, which is why it often holds single-page app routes and, in some sign-in flows, tokens.

What do servers do with a repeated parameter?

It varies. Some take the first, some the last, and some build a list, which is why the duplicate gets flagged. Check what your own framework does.

What to use next

Learn more

Last reviewed . Read our editorial policy.