ToolBuddy
In Browser

URL Parser

Split a URL into protocol, host, port, path, query, and hash using the browser URL API. Inspect search params as JSON without a remote parser. Useful when a log line is one long encoded address.

Runs in your browser. Nothing is uploaded.

Splits protocol, host, path, query, and hash with the browser URL parser.

0 characters · 0 lines

0 characters · 0 lines

About this tool

Parse a URL into protocol, username, host, port, path, query, hash, and origin with the browser URL constructor. Query parameters are grouped as arrays so repeated keys stay visible. Missing schemes are tried as https:// so a bare host still parses.

How to use: paste a full URL or a host-plus-path. Read the JSON of parts, copy from the sticky bar. Invalid input shows a parse error instead of a silent empty object. Passwords in the userinfo segment appear in the JSON, so treat that like any other secret paste.

Example: https://toolbuddy.dev/tools/json-formatter?q=hello%20world#demo yields hostname, pathname, a query map, and hash. Useful when a log line is one encoded address and you need the ref parameter.

Parsing is URL in this tab, not a redirect-following crawler and not a 'whois' lookup. Related: URL encoder for percent-encoding, JWT decoder if the query holds a token you should inspect locally.

Related Web tools