URL Parser

Break a URL down into its protocol, host, port, path, query parameters and hash.

0 chars

How URL parsing works

A URL is made of several distinct parts: a protocol (like https), a host (the domain, e.g. example.com), an optional port, a path pointing to a specific resource, a query string of key/value parameters, and a hash fragment for jumping to a specific spot on the page.

Frequently asked questions

Is my data sent to a server?+

No. Parsing happens entirely in your browser using the built-in URL API. Nothing you paste here is transmitted or stored.

Why does it say "assumed https://"?+

A URL needs a scheme (like https://) to be valid. If you paste one without it, the parser tries again with https:// added so you still get a result — it just lets you know it made that assumption in case your link actually used http:// or something else.

What if my URL has no query parameters?+

The query parameters table only appears when the URL actually has a query string. Everything else — protocol, host, path, hash — still shows even if it's empty.