URL Parser & Query String Decoder

Paste a URL and see every piece — scheme, host, port, path, each query parameter, and the fragment. Great for debugging redirects, reading API links, or untangling a long share URL.

Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/url-parser" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/url-parser" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - URL Parser & Query String Decoder</a></div>

Anatomy of a URL

A URL (or URI) is built from a few parts: scheme://host:port/path?query#fragment. The scheme says how to talk to the server (https), the host is the domain, the path points at a resource, and the query carries parameters (key=value pairs) used by the server or the page's JavaScript.

Reading query strings

Query parameters are separated by & and each is a key=value pair. Order usually matters to the server, so this tool lists them in order. Values are percent-encoded — spaces become %20, & becomes %26 — and this parser decodes them for readability.

Why it matters

Everything runs in your browser — the URL is never sent anywhere.

Formats, sizes and other limits

addRow() builds the result table one field at a time after the string has been handed to the browser's own URL parser, so the split between protocol, host, port, path, query and fragment follows the specification rather than a regular expression's guess. Each query parameter is listed separately with its decoded value, and escapeHtml() keeps values containing angle brackets from being interpreted as markup.

Where it stops working

Parsing follows the browser's WHATWG URL rules, which normalise as they go: default ports disappear, dot segments in the path are resolved, and a hostname is lowercased. That is correct behaviour and occasionally surprising when you expected the literal string back. Percent-encoding is decoded for display, so a value that was deliberately encoded is shown in its readable form. Non-absolute URLs need a base to resolve against, and the page does not invent one.

Privacy: nothing is uploaded

The URL is decomposed by the browser’s own parser in this tab. Query values are not logged, and a URL containing a token is not stored.

Frequently asked questions

Why did my port disappear?

Because it is the default for the scheme, and the URL standard removes it during normalisation. The connection is unaffected.

Are the parameter values decoded?

Yes, for readability. If you need the raw encoded form, keep the original string.

Can it parse a relative URL?

Not on its own — a relative reference needs a base to resolve against, and the page does not assume one.