URL Parser & Analyzer
Full URL with auth & params
GitHub API URL
Parse any URL and see its components: protocol, hostname, port, path, query parameters, hash, and more. Decodes percent-encoded values.
How to Use URL Parser & Analyzer
- Enter or paste a full URL in the input field.
- The URL is parsed instantly and all components are displayed below.
- Query parameters are shown in a separate table with decoded values.
- Click "Copy" next to any component to copy it to your clipboard.
What is a URL Parser?
A URL parser breaks down a Uniform Resource Locator into its individual components. A URL follows the structure protocol://username:password@hostname:port/pathname?query=value#fragment. Each part serves a specific purpose: the protocol defines the communication method (HTTP, HTTPS, FTP), the hostname identifies the server, the port specifies the network endpoint, the pathname points to a resource, query parameters pass data, and the fragment references a section within the page. This tool uses the browser's built-in URL API for standards-compliant parsing.
How URL Parsing Works
The browser's URL constructor validates and normalizes the input according to the WHATWG URL Standard. It resolves relative paths, adds default ports (80 for HTTP, 443 for HTTPS), and handles edge cases like missing protocols. Query parameters are automatically parsed into key-value pairs, and percent-encoded characters (like %20 for space and %26 for ampersand) are decoded for readability. The origin property combines protocol, hostname, and port, which is particularly useful for understanding CORS (Cross-Origin Resource Sharing) policies.
Common Use Cases
- Debugging API endpoints by inspecting query parameters
- Extracting tracking parameters (utm_source, utm_campaign) from marketing URLs
- Understanding redirect URLs with complex query strings
- Verifying CORS origins by checking protocol, hostname, and port
- Inspecting OAuth callback URLs and their embedded tokens
- Analyzing webhook URLs and their configuration parameters
URL Encoding and Special Characters
URLs can only contain a limited set of ASCII characters. Characters outside this set, including spaces, international characters, and certain punctuation, must be percent-encoded. A space becomes %20, an ampersand becomes %26, and a plus sign in a query string typically represents a space. This encoding prevents ambiguity: without it, a space in a filename would break the URL, and an ampersand in a value would be confused with the parameter separator. When debugging APIs, always check whether your parameters are properly encoded, as double-encoding or missing encoding is a common source of bugs.
For encoding and decoding URLs, use the URL Encoder/Decoder. For validating URL format, try the URL Validator. For HTTP debugging, see the HTTP Status Codes Reference.