# URL Parser

> Break a URL into host, path and query params. Runs entirely in your browser — nothing you paste is sent anywhere.

Source: https://toffeekit.com/tools/url-parser

**Category:** [Developer](https://toffeekit.com/category/developer) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/url-parser

**Also useful for:** url, parse, query string, params

## How it works

1. Paste a full URL, including https://, into the URL box.
2. Read the parts in the output: protocol, host, port, origin, path, segments, query and hash.
3. Check the query object to see each parameter and its decoded value.
4. Click Copy or Save to keep the result as url.json.

## FAQ

### How do I get the query parameters from a URL?

Paste the URL and look at the query section. Every parameter is listed with its decoded value, so %20 appears as a space.

### What happens when a parameter appears more than once?

Repeated keys are collected into a list. For ?tag=a&tag=b the query shows tag as an array containing a and b.

### Why does it say That isn't a full URL?

The URL needs a scheme such as https://. Text like example.com/page has no protocol, so add it in front and try again.

### What is the difference between host, origin and path?

The host is the domain name, the origin is protocol plus host plus port, and the path is everything after the domain up to the ? or #.

### Does it show the username and password in a URL?

It shows the username, and the password is hidden as dots. Avoid putting credentials in URLs at all, since they end up in logs and history.

### Is URL Parser free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

## Privacy

URL Parser runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [JSON Formatter](https://toffeekit.com/tools/json-formatter) — Format, minify and validate JSON with clear errors.
- [Base64 Encode / Decode](https://toffeekit.com/tools/base64-encoder) — Encode text to Base64 or decode it back, UTF-8 safe.
- [URL Encode / Decode](https://toffeekit.com/tools/url-encoder) — Percent-encode query values or whole URLs.
- [HTML Entities](https://toffeekit.com/tools/html-entity-encoder) — Escape < > & and quotes, or decode entities.
- [JWT Decoder](https://toffeekit.com/tools/jwt-decoder) — Read a token's header, claims and expiry.
- [Hash Generator](https://toffeekit.com/tools/hash-generator) — MD5, SHA-1, SHA-256, SHA-384 and SHA-512 at once.

