Input URL

Parsed Components

Paste a URL on the left to see its components

URL Structure

A URL can contain up to 8 components. Here's how they map to the sample URL. The full grammar is defined in the <a href="https://url.spec.whatwg.org/#concept-url" target="_blank" rel="noopener">WHATWG URL Living Standard</a>:

URL anatomy
Components

What Is a URL Parser?

Debugging a webhook, tracing a redirect chain, or just trying to figure out what query parameters are actually being sent? A URL parser breaks the URL into its building blocks — protocol, hostname, port, path, query string, and fragment — so you can see exactly what is going on. This tool follows the structure defined in RFC 3986 and uses the browser's built-in URL API to handle edge cases like IPv6 addresses, IDN hostnames, and percent-encoded characters. Query parameters are decoded using URLSearchParams. Everything runs in your browser — nothing leaves your machine.

How to Use the URL Parser

1

Paste a URL

Copy any URL — from a browser address bar, an API endpoint, or a log file — and paste it into the input field.

2

Inspect the Parsed Components

The tool instantly breaks the URL into its parts: protocol, hostname, port, path, query parameters, and fragment. Each component is labeled clearly.

3

Use the Extracted Data

Copy individual components to use in your code, debugging, or documentation. The parsed query parameters are especially useful for API integration work.

Parsing Example

Example: Parsing an API URL

Input URL:

https://api.example.com:8080/v2/users?page=2&limit=50&sort=desc#results

Parsed components:

Protocol:  https:
Hostname:  api.example.com
Port:      8080
Path:      /v2/users
Query:     page=2 | limit=50 | sort=desc
Fragment:  results

Frequently Asked Questions

Why does it require https:// or http://?

The browser's URL API requires a scheme to determine how to parse the rest. Without https:// or another scheme, the input is treated as a relative URL with no base, which fails. Prepend https:// if you only have a hostname. You can browse all officially registered schemes in the IANA URI schemes registry.

Are query parameter values decoded?

Yes. The Query Parameters table shows decoded values. For example, q=hello+world shows hello world. The raw encoded query string is also shown in the Structure section. The original URL specification covering query string syntax is RFC 1738.

Can I build a URL from scratch?

Use the Query String Builder to construct query strings from key-value pairs and get a complete URL.

Related Tools