Skip to main content
Back to tools

URL Parser

Break down a URL into protocol, host, path, query params, and hash

About URL Parser

Type or paste a URL to see it split into protocol, host, port, path, fragment and a list of query parameters, using the browser's built-in URL parser. Missing parts are simply hidden, and any user:password@ credentials are left out of the breakdown. Handy for debugging redirect targets, OAuth callback URLs or tracking links with long query strings.

Category: API.

Frequently asked questions

Do I need to include http:// or https://?

▾

No. If the input doesn't start with http:// or https://, https:// is added before parsing, so example.com/docs works. Other schemes such as ftp:// or mailto:, and uppercase prefixes like HTTPS://, aren't recognized and give wrong results.

Why doesn't the port show up?

▾

A port appears only when the URL specifies one that isn't the default for its protocol. The parser drops :443 on https and :80 on http, so https://example.com:443/ shows no port, while http://localhost:3000 shows 3000.

Are query parameter values decoded?

▾

Yes. Percent-escapes are converted and + is read as a space, so ?q=caf%C3%A9+latte appears as café latte. Use the URL Encoder when you need to encode a value again.

What is a URL fragment?

▾

The part after # (e.g., #section-2). The fragment is never sent to the server — it's handled entirely by the browser, used for in-page navigation and client-side routing.

Related tools