URL Parser | How to use and interpret results
Separate an address into protocol, host, port, path, query and fragment. The output follows browser URL normalization without requesting the destination.
- Runs in your browser
- Nothing is uploaded
- No signup; device limits apply
Loading the tool. If it does not appear, reload this page.
How to use this tool
Paste a complete URL for analysis. Relative paths can resolve against this site's origin, so first make them absolute if they came from a different site.
Results and examples
https://example.com/a?x=1#top yields host example.com, path /a, query x=1 and fragment top. A default port can normalize to an empty value displayed as default.
Worked example
https://example.com/a?x=1#top yields host example.com, path /a, query x=1 and fragment top. A default port can normalize to an empty value displayed as default.
Limitations
- Valid URL syntax does not prove availability or safety.
- Original encoding and normalized output need not match character for character.
Fields
| Field | Guidance and constraints |
|---|---|
| URL | Check the unit and format displayed beside this field. |
| Protocol | Check the unit and format displayed beside this field. |
| Host | Check the unit and format displayed beside this field. |
| Port | Check the unit and format displayed beside this field. |
| Path | Check the unit and format displayed beside this field. |
| Hash (fragment) | Check the unit and format displayed beside this field. |
| Query parameters | Check the unit and format displayed beside this field. |
Data handling
Processing stays in the current browser tab; the site does not upload tool input for the calculation itself.
Sources
Frequently asked questions
Which part is #top?
https://example.com/a?x=1#top yields host example.com, path /a, query x=1 and fragment top. A default port can normalize to an empty value displayed as default.
Does parsing visit the site?
Valid URL syntax does not prove availability or safety. Original encoding and normalized output need not match character for character.