URL Parser
BetaPaste a URL and see its protocol, credentials, host, port, path, query string as a table, and hash, plus a JSON form to copy. Validate it, and require HTTPS on request. Runs in your browser, no signup.
- Free, no sign-up
- REST + MCP
- Updated
- Reviewed by Olgun Ozoktas
How to parse a URL
-
Paste the URL
Paste a full URL with its scheme into the box, or click Load sample. The components appear at once. -
Read the parts
The Components list shows protocol, credentials, host, port, origin, path, query string and hash. Empty parts show a dash. -
Check the query
The Query parameters table lists one row per key and value, with repeated keys on separate rows and encoded characters decoded. -
Copy the JSON
Click Copy to put the structure on your clipboard as JSON, for a test fixture, a bug report or a script.
Common use cases
Debugging tracking links
Checking redirect targets
Reading log lines
API tests
Why use a URL parser?
The URL Parser splits a URL the way a browser does and shows every part in its own row: protocol, username and password, host, port, origin, path, query string and hash. The query string becomes a table with one row per parameter, repeated keys on separate rows and percent-encoding decoded, and the whole structure is available as JSON to copy. A validator reports whether the string is a URL at all and can require HTTPS.
The parsing and the validation are the same functions behind the REST tools url-parse and url-validate and the MCP tools url_parse and url_validate, so a script sees exactly what the page shows.
To go the other way, the JSON to URL Params tool builds a query string from a JSON object with correct encoding.
How it compares
A browser's address bar and the URL constructor in a console split a URL too, but they do not show repeated keys as rows, decode the values in a table, or validate with an HTTPS requirement, and they are not available to a script or an AI client. Other online parsers often stop at the query string or send the URL to a server.
This page parses in your browser, shows components, a query table and JSON, validates with an optional HTTPS rule, and exposes the same functions through a REST endpoint and an MCP server. It does not resolve relative URLs and says so.
Tips
- Include the scheme. Without https:// the string is not a URL to the parser.
- Turn on Require HTTPS when the URL will be stored as a webhook or redirect target.
- Repeated keys are arrays in the JSON; a server that reads only the last value will see the last row.
- The hash never reaches a server; do not put secrets there and expect the server to see them.
- Use JSON to URL Params to build a query string from the JSON you copied here.