Skip to content

The browser URL parser

Split a URL into parts

A URL is several fields joined by punctuation. This page uses the browser's URL parser and lists each part, including every query parameter.

If you omit the scheme, https:// is added so the host can be parsed. Username and password in the URL are shown as the parser sees them. The hash is included. Parameters keep their order and repeated keys stay as separate rows. The page does not fetch the address and does not decode a scheme it does not recognize as a URL.

Parsing stays in this tab. The address is not requested.

This tool runs in your browser. Turn on JavaScript to use it.

A host, a path, and one query

The scheme was added because the sample had none. The query is also a single row.

Input
glazlo.com/developers?q=hex
Host
glazlo.com
Path
/developers

How to use it

  1. 1Paste a URL or a host.
  2. 2Read the parts and the query rows.
  3. 3Copy the field you need. Nothing is fetched.

Good to know

  • A missing scheme becomes https.
  • The page does not open the URL.
  • Repeated query keys stay on separate rows.

Questions

Why did https appear?

The input had no scheme. The parser needs one, so https is assumed.

Is the page requested?

No. Only the text is parsed.

Where is Punycode?

The URL page shows the host the browser returns. The Punycode page converts labels on purpose.

Related tools

  • Parse and build a query string

    A query string is a list of pairs, not one encoded blob. This page splits q=red&size=42 into rows you can edit, then joins them back.

  • Convert a domain to Punycode

    DNS labels are ASCII. Punycode stores the other characters in a label that starts with xn--. This page converts each label and leaves an already-ASCII label alone.

  • URL encode and decode

    Reserved characters in a URL have jobs. A space, an ampersand, or an equals sign inside a value must be escaped or the query will split in the wrong place.