URL Parser
Split a URL into its protocol, host, port, path, query parameters and fragment, with each parameter decoded for you.
The parts of a URL (an example)
httpsProtocol://userUsername@example.comHost:8443Port/path/pagePath?name=valueQuery string#sectionFragment
Runs in your browser. Nothing you enter is uploaded or stored.
How to use the URL Parser
- Paste a URL into the box, or load the sample to try it.
- Look at the coloured picture of the URL: each part has its own colour and its name underneath.
- Read the list below it for what the protocol, host, port, path, query string and fragment each do. A part keeps its colour everywhere on the page.
- Look at the Query parameters table to see each name and value, already decoded.
- Check the path segments to see each piece of the path on its own.
- Copy the tidied URL at the bottom if you want the clean, correctly encoded version.
Questions and answers
- Is my URL sent to a server?
- No. The URL is taken apart in your browser and is never requested, uploaded, stored or logged. That matters because URLs often carry tokens, email addresses and other private values.
- What are the parts of a URL?
- In https://example.com:8443/path/page?name=value#section, the protocol is https, the host is example.com, the port is 8443, the path is /path/page, the query string is name=value and the fragment is section. A username and password can come before the host, though that is rarely used today.
- What is a query string?
- It is the part after the question mark, holding extra information as name and value pairs joined by &, such as ?q=shoes&page=2. Sites use it for search terms, filters, page numbers and tracking tags. The same name can appear more than once, and the tool lists each one.
- Why do the values look different from the URL?
- URLs can only contain certain characters, so others are percent-encoded: a space becomes %20 or +, and é becomes %C3%A9. The tool decodes parameters, path segments and the fragment so you see the real values. The Path and Query string rows keep the encoded form, exactly as sent.
- What is the fragment, and is it sent to the server?
- The fragment is the part after the #. It points to a place within the page, such as a heading. Browsers do not send it to the server; it is used only by the page itself, which is also why single-page apps sometimes keep their state there.
- Why does it show a port that is not in my URL?
- Every protocol has a default port, which is left out of the URL: 443 for https and 80 for http. The tool shows it with a note so you know which port a connection would really use.
Related tools
Color ConverterConvert colors between HEX, RGB, HSL and OKLCH, with a color picker and live preview. Free and runs in your browser.HTTP Status CodesLook up any HTTP status code, from 200 and 301 to 404 and 503, with a plain explanation of what each one means.JSON FormatterFormat, validate and minify JSON in your browser. Clear error messages, free, and nothing you paste is uploaded.XML FormatterFormat and validate XML in your browser. Indent messy markup, spot syntax errors, and keep your data on your device.YAML FormatterFormat and validate YAML in your browser. Fix indentation, catch syntax errors, and keep config files on your device.