Skip to content

URL Parser

Parse any URL into its components: protocol, host, port, path, query parameters, and fragment. Analyze URL structure instantly. Free, 100% in your browser.

What is a URL?

A URL (Uniform Resource Locator) is the address used to access resources on the web, defined by RFC 3986. A URL has the general form: scheme://[user:pass@]host[:port]/path[?query][#fragment]. This tool uses the browser's native URL constructor to parse URLs according to the WHATWG URL Standard, which is the same parser used by browsers to resolve links.

URL components explained

Protocol (scheme): The communication protocol — https:, http:, ftp:, etc. Host: The domain name or IP address of the server. Port: The network port (defaults: 80 for HTTP, 443 for HTTPS). Path: The resource location on the server, like /api/users. Query string: Key-value parameters after ?, separated by &. Fragment: A hash reference to a section within the page (e.g., #section-2), never sent to the server. Origin: The combination of scheme + host + port — used by browsers for same-origin policy checks.

Common use cases

Debugging API calls — quickly inspect query parameters and path segments. SEO analysis — verify canonical URLs, check for trailing slashes, and inspect query parameters that affect indexing. Security auditing — inspect URLs for unexpected parameters, encoded characters, or credential leaks. Redirect analysis — break down complex redirect URLs with multiple encoded parameters. Deep linking — verify mobile deep link URLs and universal link formats.

Privacy

All URL parsing runs 100% in your browser using the native URL API. No data is sent to any server.