Free URL Parser Online

Parse any URL into its components: protocol, host, pathname, query string, hash and more. Free online URL parser and query string inspector.

Free online file converter tool. Works in Chrome Firefox Safari Edge Opera and other modern browsers on Windows macOS Linux Android and iOS. No software installation required. All processing happens directly in your browser, so your files never leave your device. Completely free to use with no account needed.

Free URL Parser Online

Parse any URL into its components. View protocol, host, pathname, query string and hash. Inspect query parameters in a table.

Key Features

Everything you need to inspect URLs

URL
Full URL Breakdown

Splits any URL into all components: protocol, origin, host, hostname, port, pathname, search and hash.

QS
Query String Inspector

Automatically parses all query string parameters into a clean key-value table for easy reading.

SEC
Live Parsing

Results update as you type. No button press needed. Uses the browser native URL API for accurate parsing.

How to Parse a URL Into Its Components

  1. Paste an Absolute URL

    Drop a full URL that includes a scheme, such as https://example.com/path?id=42#top, into the input field. Parsing happens on your device using the browser native URL constructor, so the value you type stays on your device. Relative paths without a scheme will not parse because the URL API needs a base.

  2. Read the Component Cards

    The tool instantly fills nine cards: Full URL, Origin, Protocol, Host, Hostname, Port, Pathname, Search and Hash. Empty parts, such as a missing port or hash, are shown as (empty) so you can tell a blank field from a parsing gap at a glance.

  3. Inspect the Query Parameters

    If the URL has a query string, a Query Parameters table lists every key and its decoded value. Percent-encoded characters are unescaped for you, and a key that repeats appears once per occurrence so duplicate parameters stay visible.

What Each URL Component Means

The parser exposes the same properties the browser URL API returns. Knowing what each one holds makes it easier to debug links, redirects and API calls. The table below maps every card to its meaning using the example https://api.example.com:8443/v1/users?role=admin#list.

ComponentHoldsExample Value
OriginScheme, host and port togetherhttps://api.example.com:8443
ProtocolThe scheme with a trailing colonhttps:
HostHostname plus port when presentapi.example.com:8443
HostnameDomain only, without the portapi.example.com
PathnameThe path after the host/v1/users
Search and HashQuery string and fragment?role=admin and #list

When This Parser Helps

Debugging Query Strings

When a link carries a long list of tracking or filter parameters, the key-value table separates each one so you can confirm the exact values being sent without counting ampersands by hand.

Checking Encoding

Because values are decoded with the URLSearchParams API, you can paste a percent-encoded URL and immediately read what a parameter such as %20 or %2F actually resolves to.

Verifying Origin and Port

For API and CORS work, the Origin, Hostname and Port cards let you confirm whether a request targets the host and port you expect, including non-default ports like 8443.

Quick Offline Lookups

Since parsing runs in your browser with no upload, you can inspect internal, staging or localhost URLs that you would not want to send to a remote service.

Common Problems and Fixes

It says the URL is invalid

The parser uses the strict browser URL constructor, which rejects anything missing a scheme. Add a prefix such as https:// to the front of the value and try again.

My relative path will not parse

Relative URLs like /path?id=1 need a base URL for context, which this tool does not supply. Prepend a full origin, for example https://example.com/path?id=1, to parse it.

The query table is missing

The Query Parameters table only appears when the URL contains a query string after a question mark. A URL with no parameters shows the component cards only.

A value looks different than I typed

Query values are shown decoded, so percent-encoded characters are converted back to plain text and a plus sign in the query may render as a space. Compare against the raw Search card if you need the encoded form.

References

  1. URL Living Standard - WHATWG
  2. RFC 3986: Uniform Resource Identifier (URI) - IETF
  3. URL - MDN Web Docs, Mozilla
  4. URLSearchParams - MDN Web Docs, Mozilla
  5. URL.pathname - MDN Web Docs, Mozilla
  6. URL structure - overview
  7. encodeURIComponent() - MDN Web Docs, Mozilla
  8. Clipboard.writeText() - MDN Web Docs, Mozilla