Take a URL apart

Split a URL into its scheme, host, port, path, query parameters and fragment, decoded and read the way a browser reads it. Paste one link per line.

URL parser in three steps

A link copied out of an email, a log file or an analytics report is often too long to read at a glance. This takes each one apart into the pieces a browser and a server see: the scheme, any user name, the host, the port, the path and its segments, every query parameter with its value decoded, and the fragment after the hash.

Read the way a browser reads it

The reading is done by the URL parser your browser already uses for every page it loads, so a part shown here is the part a request would carry. That matters where the written form and the sent form differ. A host is lower-cased, an international domain becomes its ASCII form, a port that is the default for the scheme is dropped, and a path with ./ or ../ in it is resolved. Each of those is noted beside the value, so a difference between what was pasted and what is shown has a reason next to it.

A line written without a scheme, such as www.example.com/page, is read as https, and the result says so rather than refusing it.

Query strings, decoded

Each parameter is listed on its own line with its value decoded, so caf%C3%A9 reads as café and a plus sign reads as a space. A name that appears more than once is listed each time, in order, because servers read repeated parameters differently and the order can matter.

Paste several links, one per line, and each is read in turn. A line that is not a URL is named as such instead of stopping the rest. Passwords are never printed, here or in the copy you download.

  1. 1

    Paste a URL or a list of them

  2. 2

    one per line

  3. 3

    Choose Take the URL apart

  4. 4

    Read each part with its parameters decoded

Frequently asked questions

Why does the host look different from what I pasted?

A browser writes a host in lower case, and an international domain such as münchen.de in its ASCII form, which starts with xn--. The result shows the form a browser sends and notes what you wrote beside it.

What happens to a plus sign in the query?

In a query string a plus sign stands for a space, so q=red+shoes is read as red shoes, the way a server receiving the request reads it. A plus written as %2B stays a plus sign.

Is a password in the link shown?

No. A link with a user name and password in it shows the user name, and says a password is present and how long it is, without printing it. The address at the top masks it as well.

Is the link uploaded?

No. The page reads it with the parser built into your browser, so signed download links, session tokens and internal host names stay on your device.