Tools / URL Parser

URL Parser.

Split a URL into scheme, credentials, host, port, path, query parameters and fragment, and normalize it.

Runs in your browser

Ctrl/⌘ + Enter to run · Ctrl/⌘ + Shift + C to copy the result

Result
Components
Query parameters
Normalized URL

About URL Parser

The URL Parser breaks a web address into its parts so you can see exactly what a browser, proxy or backend will receive. Paste a URL and you get the scheme, user name and password if present, host, port (or the scheme's default), origin, path in raw and decoded form, the query string, the fragment and a table of query parameters with percent-escapes and plus signs decoded. Repeated parameters such as size=42&size=43 are listed separately in order, which matters because frameworks disagree on whether the first or the last value wins. Internationalized host names are shown in both forms, for example bücher.example as xn--bcher-kva.example, and IPv6 literals in square brackets are recognised. The normalized URL lower-cases the scheme and host, removes a redundant default port, resolves "." and ".." path segments and percent-encodes spaces and other characters that are not allowed raw, which is useful for canonical URLs, cache keys and comparing two links that look different but point to the same resource. Notes explain anything unusual: a password embedded in the URL, a default port that can be dropped, a missing scheme (https:// is then assumed), or an IPv4 host. Common mistakes it catches are ports above 65535, a missing closing bracket around IPv6 addresses, unencoded spaces and a # that silently cuts off the rest of the query. The parser is written by hand to follow RFC 3986, so results are identical in every browser and in the iOS app, and nothing is sent anywhere.

How to Use

  1. Paste a full URL, a URL without scheme, or a relative reference.
  2. Read the components and the decoded query parameter table.
  3. Copy the normalized URL if you need a canonical form.

Frequently Asked Questions

What does the normalized URL change?

It lower-cases the scheme and host, converts an international host name to its xn-- form, removes the default port, resolves ./ and ../ segments, and percent-encodes spaces and other unsafe characters. Parameter order and values are kept.

Why is + shown as a space in parameters?

In query strings produced by HTML forms, + encodes a space. The table decodes it that way; a literal plus must be sent as %2B.

Is the fragment sent to the server?

No. Everything after # stays in the browser and is never part of the HTTP request, which is why it is often used for client-side state and tokens.

Is my URL sent anywhere?

No. Parsing runs in your browser and the page makes no network requests.

Related Tools