UP

URL Parser

Break down any URL into its component parts: protocol, host, path, query params, and more

Enter a URL above to see its parsed components
Opens your print window: choose "Save as PDF". The file is named "URL Parser - MondayTool".
About this tool

Last updated:

Break a URL into its parts

This URL parser splits a web address into its components so you can read each one on its own. Paste a link and see the protocol, hostname, port, path, query string and fragment, plus every query parameter listed as a key and value.

How to use it

  1. Paste or type a complete URL into the field, including the protocol such as https://.
  2. The breakdown appears as you type. There is no button to press.
  3. Check the Query Parameters table if the URL has a query string.

How it works

The tool passes your text to the browser's built-in URL parser and reads the standard parts from it. Query parameters are read with URLSearchParams, so they are decoded for you, for example %20 appears as a space.

What you see

RowExample for https://example.com:8080/a/b?x=1#top
Protocolhttps:
Hostnameexample.com
Port8080, or (default) when none is given
Pathname/a/b
Search?x=1, or (none)
Hash#top, or (none)

The parameters table shows the count and appears only when the query string has at least one parameter.

Assumptions and limits

  • The protocol is required. An address like example.com/page shows an error asking you to add one.
  • The tool does not fetch the page or check that it exists.
  • Username and password parts of a URL are not shown as separate rows.
  • The subdomain and domain are not split apart. They appear together in Hostname.
  • The parsing runs in your browser.

Frequently asked questions

Why does it say Invalid URL?

Most often the protocol is missing. Add https:// or http:// in front of the address.

What does Port (default) mean?

The URL has no port written, so the browser uses the default for the protocol, such as 443 for https.

How are repeated parameters shown?

Each occurrence gets its own row, in the order it appears in the URL.

More to explore

Related Network & API

Browse all tools from the same category.

Showing 1-2 of 7