Skip to content
ToolsOnDuty - free online tools
Developer Tools

URL Parser

Break a URL into protocol, host, path, query and fragment.

Free browser toolRuns in your browserNo sign-up
URL anatomy inspector

Break a complete URL into its real browser-parsed components

Inspect origin, protocol, host, port, path, query parameters and fragment using the browser URL standard—not fragile string splitting.

Waiting

status

—

parameters

—

protocol

URL input

Include http:// or https://
Enter a complete URL to inspect its components.
Private by design. Input is processed inside this browser tab and is not sent to ToolsOnDuty.

About the URL Parser

Every URL is made of parts: a protocol, host and port, a path, an optional query string, and an optional fragment.

Paste a URL and this tool breaks it into those components and lists each query parameter in a clear table.

It uses the browser's built-in URL engine for accurate parsing, and nothing is uploaded.

Key features

  • Splits protocol, host, port, path and more
  • Preserves and lists repeated query parameters
  • Accurate, standards-based parsing
  • Copy or download a JSON analysis report
  • Runs entirely in your browser

How to use

  1. 1Paste a full URL, including the protocol.
  2. 2Review origin, protocol, hostname, port, path, query and fragment.
  3. 3Inspect decoded query parameters in source order.
  4. 4Copy or download the structured JSON report.

Examples

Break down a URL
Input: https://site.com/path?x=1#top
Output: protocol https, host site.com, path /path, query x=1, hash top

The URL is split into its protocol, host, path, query and hash parts.

Frequently asked questions

Why do I need to include https://?
A valid URL needs a protocol. Without it the parser cannot tell the host from the path, so add http:// or https:// at the start.
Does it decode the query values?
Yes. Percent-encoded query values are decoded so you can read them clearly.
What parts does it break a URL into?
It splits a URL into its protocol, host, port, path, query parameters and fragment.

Open a related tool to prepare your files or refine the finished result.