JSON Parser

URL Parser — Split a URL into Parts

Paste a URL and see its protocol, hostname, port, path, hash and every query parameter, with the parameters also shown as JSON. It runs in your browser, so internal and private URLs are never sent anywhere.

How to parse a URL

  1. Paste a full URL into the input. If you leave out the protocol, the tool assumes https://.
  2. Read each part in the breakdown and click Copy next to any value.
  3. Use the query-parameter list (or the JSON view) to inspect or reuse the parameters.

Example

For https://user@example.com:8080/search/results?q=json+parser&page=2&sort=asc#top:

PartValue
Protocolhttps
Hostnameexample.com
Port8080
Path/search/results
Hash#top
Originhttps://example.com:8080

The query string becomes:

{
  "q": "json parser",
  "page": "2",
  "sort": "asc"
}

Parts of a URL

  • Protocol — how to connect (https, http, ftp).
  • Hostname and port — the server; when the port is missing, https uses 443 and http uses 80.
  • Path — which resource on the server.
  • Query — key=value pairs after ?, separated by &. A + or %20 decodes to a space.
  • Hash — the fragment after #, used by the browser and never sent to the server.

Related tools

Encode or decode query values with URL Encode / Decode, build short links into QR codes with the QR code generator, or inspect headers with the user-agent parser.

Handles JSON files up to 20MB smoothly