URL Parser
Break down URLs into protocol, host, port, path, query parameters, and hash components.
URL Parser tool
Example
Input: https://example.com:8080/docs/page?q=test&lang=en#intro
Result: Protocol https:, Hostname example.com, Port 8080, Pathname /docs/page, Hash #intro, Query Parameters q = test, lang = en
The URL is split with the browser URL parser and each query parameter is percent-decoded once.
How Query Values Are Decoded
| In the query string | Decoded value |
|---|---|
| q=hello%20world | hello world |
| q=a+b | a b |
| q=a%2Bb | a+b |
| q=x%3Dy | x=y |
| q=Tom%26Jerry | Tom&Jerry |
| q=caf%C3%A9 | café |
| q= | (empty string) |
As shown in the Query Parameters table, which uses the browser URLSearchParams rules.
- Paste the full URL you want to analyze into the input field at the top.
- The parser instantly breaks the URL down into its individual components: protocol, hostname, port, path, query string, and hash (include the protocol, such as https://, or the URL is rejected).
- Review the query parameters table showing each key-value pair with decoded values.
- Check the host, origin, and port rows (a default port shows as "(default)") to confirm the request target.
- Use the parsed breakdown to debug routing issues, verify API endpoints, or understand encoded parameters.
The Parts of a URL Explained
A URL parser splits a web address into its parts: protocol, hostname, port, path, query string and hash. Paste https://example.com:8080/docs?q=test#intro and each part appears on its own row, with every query parameter listed as a key and a value.
Each part has a job. The protocol (https:) says how to connect. The host is the server name with an optional port; when the port is the default for the protocol, such as 443 for https, it shows as (default). The path picks a page or file. The query string after ? carries key=value pairs joined by &. The hash after # points to a spot in the page and is never sent to the server. The origin, made of protocol, host and port, is what browsers use for security rules such as CORS.
The tool uses the browser's built-in URL parser, which follows the WHATWG URL Standard. So you see the URL the way a browser sees it. The hostname is lowercased, dot segments such as /./a/../b are resolved to /b, and a username and password before the @ are shown if present. The URL must include a scheme such as https://, so example.com on its own is rejected.
In the Query Parameters table, values are decoded once: %20 and + both become a space, %2B becomes a plus and %26 becomes &. The Query String row keeps the raw encoded text so you can compare the two. Repeated keys, such as tag=1&tag=2, are listed separately. To encode or decode a single value, use URL Encode and Decode.
Sources
Frequently Asked Questions
Related Tools
URL Encode and Decode
Encode special characters for URLs or decode percent-encoded strings back to readable text.
Developer ToolsBase64 Encode and Decode
Encode text to Base64 and decode Base64 strings back to readable text, with full UTF-8 support.
Developer ToolsJSON Formatter and Validator
Format, validate, beautify, and minify JSON data with a collapsible tree view and line-and-column error detection.
Developer ToolsRegex Tester
Test regular expressions with real-time match highlighting, group capture display, and a pattern library.
Developer Tools