Skip to main content

Free URL Parser – Break a URL into Its Components

URL Parser breaks any URL into its protocol, host, path, query parameters, and more online for free. Inspect and decode URLs in your browser.

Written & reviewed by Helperzy Editorial Team · Updated July 2026

All ComponentsDecoded ParamsNo UploadCopy ValuesFree

URL

Components

Protocol
https
Host
www.example.com
Port
(default)
Path
/path/page
Query String
utm_source=google&utm_medium=cpc&q=hello%20world
Hash
section

Query Parameters (3)

utm_sourcegoogle
utm_mediumcpc
qhello world

100% Private

All parsing runs locally in your browser. Nothing is uploaded.

How to Use URL Parser

1

Paste a URL

Include the scheme, so start the string with https or http. A bare hostname has no protocol and a strict URL parser will reject it rather than guessing one for you.

2

View Components

Read off the protocol, host, port, path and fragment, plus every query parameter listed as a separate row with its percent-encoded value already decoded.

3

Copy What You Need

Copy an individual parameter value or the whole path into your ticket, test or config. Treat any token you find as a live credential rather than ordinary text.

What a URL Parser Shows You and How It Works

A URL packs six or seven distinct pieces of information onto one line, and once a tracking link grows past a couple of parameters it stops being readable. This parser splits any URL into its parts: the scheme, the hostname, the port if one is given, the path, each query parameter with its value decoded, and the hash fragment. Developers debugging why an API call hits the wrong endpoint, marketers checking that a campaign link carries the right UTM values, and support staff untangling a redirect chain all need the same thing, which is the URL laid out as fields rather than as one 300-character string. The parsing uses the browser own URL engine rather than a hand-rolled regex, which matters because URL syntax has more corner cases than it appears. The scheme ends at the first colon, the authority follows two slashes and contains any userinfo, the host and an optional colon-port, the path runs from the next slash until a question mark or hash, the query is everything between the question mark and the hash, and the fragment is whatever follows the hash. Query parameters are then split on ampersands and each key-value pair on its first equals sign, so a value containing an equals sign survives intact. Every value is percent-decoded, turning %20 into a space, %40 into an at sign and %3A into a colon. One detail worth knowing: the fragment is never sent to the server by a browser, so a parameter placed after the hash is invisible to your backend no matter how correct it looks. Parse a real link. Take https colon slash slash shop.example.in colon 8443 slash products slash 42 question mark utm_source equals newsletter ampersand q equals blue%20shoes ampersand ref equals a%3Db hash reviews. The parser reports the protocol as https, the host as shop.example.in, the port as 8443, the path as slash products slash 42, and three parameters: utm_source is newsletter, q is blue shoes with the %20 decoded back into a space, and ref is a=b because the split happened only at the first equals sign. The fragment is reviews, and it never reaches the server. That q parameter is the useful demonstration, since the encoded form is unreadable and the decoded form is immediately obvious. Everyday uses. A marketer pastes a link from an email campaign and finds utm_medium is missing entirely, which explains why the traffic showed up as direct in analytics. A developer inspects a failing API request and sees the path includes a double slash left behind by a bad string concatenation. A support engineer checks a password reset link and confirms the token parameter is present and has not been truncated by an email client. Someone auditing a third-party script finds a client ID being passed in the query string where it should never have been exposed. A tester compares two redirect targets to see which parameter the redirect dropped. Two practical notes. Always include the scheme when pasting, because a bare string like shop.example.in slash products has no protocol and a strict URL parser will reject it rather than guessing http; add https at the front and it parses correctly. The pitfall that catches people is double encoding: if a value was encoded twice, decoding once leaves you with a string still containing percent sequences, which looks like a parser bug but is actually a bug in whatever built the URL, and the fix belongs upstream. Also remember that URLs frequently contain session tokens and reset keys, so treat them as credentials. Parsing happens entirely in your browser, so a link containing a live token is never uploaded.

Examples: URL Parser

Input

https://shop.example.in:8443/products/42?utm_source=newsletter&q=blue%20shoes&ref=a%3Db#reviews

Result

protocol https, host shop.example.in, port 8443, path /products/42, fragment reviews; params: utm_source = newsletter, q = blue shoes, ref = a=b

%20 decodes to a space and %3A to a colon, and the ref pair splits only at its first equals sign so the value keeps its own equals character intact.

Input

shop.example.in/products/42

Result

Not a valid URL — no scheme found; add https:// at the start

A URL requires a scheme before the authority, so a bare hostname is rejected rather than assumed to be http, which prevents silently parsing the host as a path.

Frequently Asked Questions – URL Parser

Paste any URL into the Helperzy URL Parser and it instantly breaks it into protocol, host, port, path, query parameters, and hash. Each query parameter is listed with its decoded value in a clear table.