URL parser

Paste a URL to see its protocol, host, port, path, query parameters and hash split apart, with percent-encoded values decoded. It uses your browser's own URL engine and nothing is uploaded.

How to use it

  1. Paste the full address into URL.
  2. Read protocol, host, port, path and hash under URL parts.
  3. Check Query parameters (decoded) for each key and value in a table.
  4. If you leave out the protocol, https is assumed and the result says so.

Complete guide to reading the parts of a URL

Why take a URL apart

A web address looks like one string, but it is really a set of parts that each do a different job. Marketers need to see which utm_ tags a campaign link carries. Developers need to check that a redirect keeps the right path and query. Anyone debugging a broken link wants to know whether the problem is the host, the port or an encoded character. Reading a long address by eye is slow and error-prone, so this tool splits it into labeled pieces and decodes the percent codes for you.

The parts of a URL

Take https://user:pass@www.example.com:8080/docs/my%20page?q=hello%20world&lang=en&tag=a&tag=b#section-2. This is what URL parts reports for it:

PartValueRole
ProtocolhttpsHow to talk to the server
Hostwww.example.comWhich server
Port8080Which door on that server
Path/docs/my pageWhich resource (shown decoded from %20)
Query stringq=hello world&lang=en&tag=a&tag=bExtra inputs after the ?
Hash (fragment)section-2A spot inside the page, after the #, never sent to the server
Originhttps://www.example.com:8080Protocol, host and port together
Username and Passworduser and ********Credentials embedded in the address

The password is always masked as asterisks, and the rows for username and password only appear when the address contains them. Below that, Query parameters (decoded) lists each key and value in order in a numbered table. For this example you get four rows: q is hello world, lang is en, and tag appears twice, once as a and once as b.

Worked examples

  1. Paste the address above into URL. You see the table of parts above and the four parameter rows.
  2. Paste example.com/a?x=1, with no protocol. The tool assumes https and says so: Protocol reads https (assumed, none was given), Port reads 443 (default), Path is /a and there is one parameter, x equal to 1.
  3. Paste https://example.com:443/a/b/?utm_source=news&utm_medium=email+x#top. The parameters are utm_source = news and utm_medium = email x. In the parameter table a plus sign is decoded to a space, as in form submissions, while the Query string row keeps the plus as typed.

Default ports

ProtocolDefault port
http, ws80
https, wss443
ftp21

When the address does not state a port, the tool shows the default for that protocol marked as default. If it is a protocol without a known default, such as mailto, the port shows a dash.

Tips and common mistakes

  • Include the protocol when you can. Without it the tool has to guess, and it will tell you it assumed https.
  • The text after # is handled by the browser only. If a tracking tool or server seems to ignore your fragment, that is why.
  • Parameters are separated by &. A value that itself contains & or = must be percent-encoded, or it will be split into extra parameters.
  • Repeated keys, such as tag=a&tag=b, are all kept. Some servers read only the first or the last, so check how yours behaves.
  • Avoid sharing addresses that contain a username and password. Passwords in URLs are visible in logs and browser history.
  • The tool only reads the text. It never opens the link or checks that the page exists.

Related tools

Build tagged links with the UTM link builder, encode or decode whole addresses with the URL encoder and decoder, turn a title into a clean path with the slug generator, or escape a single value with the string escape tool.

Questions

What are the parts of a URL?

Protocol (https), host (www.example.com), optional port (:8080), path (/docs/page), query string (?a=1&b=2) and hash (#section). The origin is protocol plus host plus port.

Why is the port empty or marked default?

When the URL does not state a port, browsers use the protocol default: 80 for http and 443 for https. The tool shows that value marked as default.

How are repeated parameters shown?

Each occurrence is its own row, in order, so ?tag=a&tag=b gives two rows for tag. Plus signs and percent codes are decoded to normal text.

Does it fetch the page?

No. It only reads the text you paste. It never opens the link or checks whether it exists.