consolelog.tools

URL Parser

Break any URL into its parts live — protocol, host, port, path segments, query parameters and fragment. Edit the query string inline, see host flags (IP, localhost, IDN), and copy any piece or pipe the whole thing as JSON. Runs entirely in your browser.

About this ToolHow it works, benefits & use cases

Paste a URL and this parser breaks it into every component — protocol, host, hostname, port (showing the default when none is given), origin, path, query string, fragment, and even userinfo (username and password) when present. It updates live, and if you omit the scheme it adds https:// for you and tells you it did. The path is split into individual segments you can read at a glance, and the query string is shown as an editable key/value table: change a value, add a parameter, or remove one, and the URL is rewritten to match. Helpful flags call out a localhost host, a raw IP host, and punycode (internationalised) domains. Every component is individually copyable and the whole parse exports as JSON. It all runs in your browser, so URLs that contain tokens or credentials never leave your machine.

How to Use

  1. 1Paste a URL into the input — a scheme is added automatically if you leave it out — or click "Load example".
  2. 2Read the component cards: protocol, host, port, origin, path, query, fragment, and any userinfo.
  3. 3Scan the path segments and the flag badges (localhost, IP host, punycode, added https).
  4. 4Edit the query string inline — change a value, click Add to insert a parameter, or remove one — and watch the URL rebuild.
  5. 5Click any component card to copy it, or copy/download/pipe the full parse as JSON.

Key Benefits

  • Splits a URL into protocol, host, port, origin, path, query, fragment, and userinfo
  • Shows the default port when none is specified
  • Breaks the path into individual readable segments
  • Editable query-parameter table that rewrites the URL as you change it
  • Flags for localhost, raw IP hosts, punycode (IDN), and auto-added scheme
  • Every component is individually copyable
  • Full JSON export and a shareable URL, all in-browser

Common Use Cases

  • Inspecting a long URL with many query parameters from analytics or an OAuth redirect
  • Building or tweaking a query string by editing parameters and copying the result
  • Extracting just the origin, host, or path from a URL for config or routing
  • Spotting a punycode/IDN host that may be a homograph trick
  • Decomposing a callback or webhook URL while debugging an integration

Paste a URL — a scheme is added automatically if you omit it.

Paste a URL above to see it broken down.

Was this tool helpful?

Share Your Experience

Help others discover this tool!

Related tools