URL Parser

Break a URL into protocol, host, port, path, query parameters and fragment. Free, private and instant: everything runs in your browser.

URL
Parsed URL
Result appears here as you type

What does the URL Parser do?

A URL parser splits a web address into its parts using the WHATWG URL standard: protocol, hostname, port, path segments, decoded query parameters (including repeated keys) and the hash fragment. It helps debug redirects, tracking links and API calls.

How to use the URL Parser

  1. 1

    Paste your url

    Paste or type url into the input box, open a file from your device, or click Sample to load an example.

  2. 2

    Convert instantly

    The URL Parser processes your input right in the browser.

  3. 3

    Copy or download the result

    Review the parsed url on the right, then copy it to the clipboard or download it as a .json file.

URL Parser example

Input
https://imaginexai.in:443/tools/json-viewer?utm_source=google&utm_medium=cpc&tag=json&tag=free#examples
Output
{
  "href": "https://imaginexai.in/tools/json-viewer?utm_source=google&utm_medium=cpc&tag=json&tag=free#examples",
  "protocol": "https",
  "hostname": "imaginexai.in",
  "port": "443 (default)",
  "origin": "https://imaginexai.in",
  "pathname": "/tools/json-viewer",
  "pathSegments": [
    "tools",
    "json-viewer"
  ],
  "search": "?utm_source=google&utm_medium=cpc&tag=json&tag=free",
  "queryParams": {
    "utm_source": "google",
    "utm_medium": "cpc",
    "tag": [
      "json",
      "free"
    ]
  },
  "hash": "#examples"
}

When to use it

  • •Inspecting UTM and tracking parameters
  • •Debugging OAuth redirect URLs
  • •Checking API request URLs

Why use this url parser

  • 100% free, no signup or login
  • Runs locally: your data never leaves the browser
  • Instant results with clear error messages
  • Works on desktop, tablet and mobile
  • Copy to clipboard or download in one click
  • No watermarks and no usage limits

Frequently asked questions

Is the URL Parser free?+

Yes. The URL Parser is 100% free with no signup, no login, no usage limits and no watermark. It works on desktop and mobile browsers.

Is my data uploaded when I use the URL Parser?+

No. The URL Parser runs entirely in your browser with JavaScript. Nothing you paste or upload is sent to our servers, logged or stored.

Last updated by the Imaginex AI team.