Last reviewed August 24, 2026

How to Parse a URL into Its Components

Inspect protocols, hosts, paths, repeated query parameters, and fragments without navigating to the URL.

Understand URL anatomy

An absolute URL can contain a scheme, authority, optional port, path, query string, and fragment. These parts have different escaping and routing meanings.

Inspect query parameters

Repeated parameter names remain separate ordered entries rather than being silently collapsed. Encoded values are decoded by the browser URL standard.

Handle credentials carefully

If user information appears in the authority, the parser reports its presence without displaying the username or password in the results table.

Parsing is not navigation

No DNS, HTTP, reputation, availability, redirect, or destination request occurs.

Review before reusing a URL

Check origin, path segments, parameters, and fragment separately before copying data into an application.

Try the browser tool

Work with your file locally.

Open URL Parser