URL Parser

Split a URL into protocol, host, path, query parameters and fragment.

Also called: URL analyzer, URL breakdown.

FreeNo sign-upRuns in your browser
DEVELOPER

URL Parser

Split a URL into protocol, host, path, query parameters and fragment.

Runs locally in your browser
Ready. Fill in the fields above, then press Run tool.
Privacy note: this tool runs in your browser, so the text you enter stays on your device.

Find a tool

Loading tools…

Watch: how to use the URL Parser (12 seconds)

Recorded on a phone, steps written on screen, no sound.

About the URL Parser

Paste a URL to split it into protocol, host, port, path, query parameters (decoded, one per line) and fragment. Useful for debugging links and tracking tags.

How to use the URL Parser

  1. Enter your textType URL.
  2. Press Run toolThe result appears right under the button.
  3. Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.

This tool works inside your browser: what you enter stays on your device.

Example

A sample input and the result the URL Parser gives for it (produced by the tool itself, not typed by hand).

URL
https://example.com/path?a=1&b=2#top

Result:

Protocol: https:
Host: example.com
Port: (default)
Path: /path
Query parameters: 2
  a = 1
  b = 2
Fragment: #top
Username: (none)

Good to know

What you need
You type or choose: URL
Where it runs
In your browser, on your device.
Cost
Free, no sign-up.

Questions

What is the fragment?

The part after #, which stays in the browser.

Can I build a query string?

Use the Query String Builder.

More tools in Developer

See all Developer tools