URL Parser
Parse any URL into its components instantly online. Shows protocol, hostname, port, pathname, query parameters, and hash. Free URL parser — no signup, runs entirely in your browser.
URL Input
Related Tools
Unix Timestamp
Convert Unix timestamps to UTC, local time, and ISO 8601 instantly. Auto-detects seconds vs milliseconds.
Base Converter
Convert numbers between decimal, hex, binary, and octal instantly. Free and runs in your browser.
Hash Generator
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes instantly. Runs entirely in your browser using the Web Crypto API.
A URL (Uniform Resource Locator) is a structured string composed of several distinct components: protocol/scheme, username and password (optional), hostname, port, path, query string (key-value pairs), and fragment identifier. The WHATWG URL Standard defines how browsers parse URLs, handling edge cases like percent-encoding, internationalized domain names, and default port numbers.
Developers frequently need to extract individual components from URLs when building routing logic, constructing API requests, debugging redirects, or analyzing web server access logs. Doing this manually — searching for :// or ? or # — is error-prone, especially with complex query strings that contain encoded characters or nested URLs as parameter values.
This tool uses the browser's built-in URL API (WHATWG-compliant) to parse the input. It extracts and displays the protocol, host, hostname, port, pathname, full query string, individual parsed query parameters as key-value pairs, and the hash fragment. Each component has its own copy button for direct use in code or curl commands.
Common Use Cases
Extracting query parameters from analytics or redirect URLs
Marketing URLs contain many query parameters for UTM tracking: utm_source, utm_medium, utm_campaign, utm_content, and utm_term. When debugging why a conversion event is not attributing correctly, parsing the full tracking URL reveals each parameter value without manually reading the percent-encoded query string character by character.
Debugging OAuth callback URLs
OAuth 2.0 authorization flows redirect the browser to a callback URL containing an authorization code, state parameter, and sometimes an error description. When an OAuth integration is failing, parsing the redirect URL shows the exact values of the code, state, and error query parameters, making it clear whether the issue is a state mismatch, an invalid client configuration, or an authorization server error.
Constructing API requests from logged URLs
Server access logs and API gateway logs record full request URLs. When reproducing a reported API error, extracting the path, query parameters, and host from the logged URL gives you the exact parameters needed to reconstruct the request in a tool like curl or Postman without manually parsing the URL string.
Parsing webhook and callback endpoints
Webhook configuration panels in services like Stripe, GitHub, or Twilio show the registered callback URL. When troubleshooting delivery failures, parsing the URL reveals whether the port, path, or query parameters in the registered endpoint match what your server expects, helping pinpoint configuration mismatches before inspecting server logs.
How to Use the URL Parser
- Paste any full URL (including the protocol, e.g.
https://) in the input field. - The URL is instantly broken down into its components.
- Each query parameter gets its own row so you can inspect them individually.
- Click Copy next to any row to copy that value.
URL Components Explained
- Protocol — the scheme (e.g. https:)
- Hostname — the domain name without port
- Port — the port number, or "default" if not specified
- Pathname — the path after the hostname
- Search — the full query string starting with ?
- Hash — the fragment identifier starting with #