Skip to content
Devtoolry

URL Parser

Parse a URL online into protocol, host, port, path, query parameters and fragment. Read long tracking links and debug query strings at a glance.

Runs in your browser · Nothing uploadedFree · No sign-up

Something not working, or missing a feature? Send feedback

About the URL Parser

The URL Parser splits a URL into protocol, credentials, host, port, path, query parameters and fragment, and decodes each query value, which makes long tracking or API URLs easy to read.

Everything runs in your browser, so your input is never uploaded to a server.

How to use the URL Parser

  1. Paste a full URL.
  2. Read each component and the decoded query parameters.
  3. Copy any part you need.

Example

Break down a shop search URL

Input

https://user:[email protected]:8443/search/results?q=red+shoes&size=42&tag=sale&tag=new#reviews

Result

{
  "href": "https://user:••••@shop.example.com:8443/search/results?q=red+shoes&size=42&tag=sale&tag=new#reviews",
  "protocol": "https",
  "username": "user",
  "password": "••••",
  "hostname": "shop.example.com",
  "port": "8443",
  "origin": "https://shop.example.com:8443",
  "pathname": "/search/results",
  "pathSegments": [
    "search",
    "results"
  ],
  "query": {
    "q": "red shoes",
    "size": "42",
    "tag": [
      "sale",
      "new"
    ]
  },
  "hash": "reviews"
}

The query is decoded (+ becomes a space), the repeated tag key becomes a list and the password is masked.

Common mistakes

  • Missing scheme. example.com/path is not a full URL, so it cannot be parsed. Add https:// in front.
  • Unencoded # or & in values. A # starts the fragment and & starts a new parameter, so a value containing them is cut short. The sender must percent-encode them as %23 and %26.
  • Credentials in URLs. user:password@host sends credentials in clear text and ends up in logs. Prefer an Authorization header.

Works well with the URL Parser

Frequently asked questions

Does it follow the URL?

No. The URL is only parsed in your browser; no request is made.

Why are some parameters listed twice?

Query strings can repeat a key (tag=a&tag=b). Each occurrence is shown in order.

Why is the password masked?

So it is not exposed when you share your screen or a screenshot. Nothing is sent anywhere either way.

Which URL rules does it follow?

The WHATWG URL Standard that browsers use, so the host, port and path are read exactly as your browser would read them.

Guides and tutorials