Developer Tools
URL Parser and Query Parameter Viewer
Split a URL into scheme, host, port, path segments, query parameters and fragment. Decodes percent-encoding, shows punycode domains and resolves relative links.
How to use URL Parser and Query Parameter Viewer
Paste a link to see each part on its own card, with decoded path segments and a table of query parameters. Add a base URL to resolve relative links such as ../img/logo.png the way a browser would.
- Paste the URLPaste a full link; if the scheme is missing, as in localhost:3000/api, https:// is assumed.
- Add a base for relative linksFor links such as ../img/logo.png, enter the page address as the Base URL to get the absolute address.
- Read the partsCheck the host, port, decoded path segments, the parameter table and any warnings about credentials or repeated names.
What each part of a URL means
Take https://user:pass@shop.example.co.uk:8443/en/products/café.html?q=tea+cups&tag=new&tag=sale#reviews. The scheme is https:, the origin https://shop.example.co.uk:8443 and the port 8443; without an explicit port the card would show 443 (default). The path is normalised to /en/products/caf%C3%A9.html and its decoded segments are en / products / café.html. Everything after ? is the query string, listed in a table where tea+cups reads tea cups and both tag values appear in order. The #reviews fragment stays in the browser and is never sent to the server.
Relative links, international domains and warnings
With the Base URL set to https://example.com/docs/guide/, the link ../img/logo.png?v=2 resolves to https://example.com/docs/img/logo.png?v=2, which helps when tracking down broken images or scripts. Internationalised domains are shown in both forms, so xn--bcher-kva.example is also displayed as bücher.example. The parser warns when a URL contains a username or password, lists repeated parameter names, and explains when a link cannot be parsed, for example because it contains a space or a port above 65535.
Accuracy and data handling
Validate the result with your project's own tests and runtime rules before using it in production. The calculation runs in your current browser; the tool code does not send the input to a processing API.
FAQ
Why does the port say 443 (default)?
The URL has no explicit port, so the browser uses the scheme's default: 443 for https and wss, 80 for http and ws, 21 for ftp. The card marks such values as default.
Why does a domain start with xn--?
DNS only carries ASCII, so domains with accents or non-Latin scripts are converted to punycode beginning xn--. Both forms reach the same site, and the parser shows the Unicode version alongside.
Is a + in a query string a space?
Yes. Query strings follow form encoding, so the parameter table shows tea+cups as tea cups. Write %2B in the URL if you need a literal plus sign.
More Developer Tools
Related toolsParse URL parameters into JSON, or build a query string from JSON
Escape text for use inside a JSON string, or unescape it back to plain text
Look up MIME types by extension, or extensions by MIME type
Generate Cache-Control headers and server config for browsers and CDNs
Escape regex special characters for JavaScript, PHP, Python, Go or grep
Translate text into binary code and binary back into readable text