URL Parser
Parse any URL and instantly view its protocol, hostname, port, path, query parameters, fragment, and other components.
URL Overview
Key components pulled from the browser URL parser.
URL Analysis
Quick checks and metrics for the parsed URL.
Query Parameters
Inspect every query parameter, including duplicates.
URL Breakdown
A visual view of the main URL parts.
Normalized URL
The URL generated by the browser URL parser.
URL Encoding & Decoding
Encode or decode a full URL or a selected component.
Copy & Export
Share parsed data or export it as JSON.
What is a URL Parser?
A URL parser separates a web address into components such as the protocol, hostname, port, path, query string, and fragment. That makes it easier to inspect redirects, debug API requests, and understand routing behavior.
How to parse a URL
- Paste a complete URL into the input field.
- Click Parse URL or press Ctrl/Cmd + Enter.
- Review the extracted URL components and query parameters.
- Inspect the breakdown, analysis, and normalized URL output.
- Copy or export the parsed information for later use.
URL components explained
Protocol
The protocol declares how the resource should be accessed. Common values include http:// and https://.
Hostname
The hostname is the domain name or IP address of the server. It is usually the part that appears before the port.
Port
The port identifies the network endpoint the server uses. Common examples include 80, 443, and 8080.
Pathname
The pathname identifies the resource or route on the server, such as /products/item.
Query parameters
Query parameters are the key/value pairs after the ? in a URL. They are commonly used for filters, pagination, and tracking.
Fragment
The fragment is the part after the #. It often points to a specific section of a page or a client-side route.
Why use an online URL parser?
Developers use a URL parser to debug API requests, inspect redirect URLs, read tracking parameters, analyze callback URLs, troubleshoot malformed URLs, review values from logs, and understand web application routing.
URL parsing example
For https://example.com:8080/products/item?category=books&page=2#reviews, the protocol is https:, the hostname is example.com, the port is 8080, the pathname is /products/item, the query parameters are category=books and page=2, and the fragment is #reviews.
FAQ
What is a URL parser?
What parts of a URL can this tool extract?
Does this URL parser work with query parameters?
Can a URL contain multiple parameters with the same name?
What is the difference between a hostname and a host?
What is a URL fragment?
# and is often used to point to a section or anchor within a page.