Parse a URL into its parts instantly
Paste a URL and get protocol, username, password, hostname, port, path, and params — all in your browser

The URL Parser takes a URL string and splits it into the parts you normally care about: protocol, username/password, hostname, port, path, and the raw query string.
Practical idea: when an API request fails, the bug is often in a tiny URL detail (a missing slash, a wrong port, an extra query key, or an unescaped character).
Who is this for?
If you need to percent-encode or decode query values, pair this with our Encode/decode URL-formatted strings tool.
Paste the URL
Put the full URL in the input box. Include the protocol when possible (for example ).
Read the extracted fields
The tool shows key parts like hostname and pathname. Copy any field with the copy buttons.
Check query parameters
Below “Params”, you get the query key/value pairs. This is the fastest way to spot a missing parameter or a typo.
How to interpret results
Input:https://me:[email protected]:3000/url-parser?key1=value&key2=value2#the-hash
Interpretation: now you can quickly confirm the endpoint and verify your query keys and .
Background: a link works locally but fails in staging.
Input:https://staging.example.com:8443/callback?code=abc123&state=xyz
Result: check and verify the query keys and exist.
Background: you’re reviewing logs and want to ensure secrets are not embedded in links.
Input:https://user:[email protected]/api/v1/data
Result: the parser exposes and immediately.
Background: your client builds URLs dynamically.
Input:https://api.example.com/v2/users/42
Result: confirm and .
Background: a query value contains spaces or special characters.
Input:https://example.com/search?q=hello%20world&lang=en
Result: use the parser to confirm the query keys, then use URL encoder/decoder to encode new values safely.
Useful when template strings produce double slashes or missing segments in .
Great for validating links that rely on \texttt{#fragment} navigation.
Confirm the presence (and spelling) of keys like and .
Catch unexpected credentials or tokens in URLs before sharing screenshots or logs.
Useful when analytics tools add many query keys and you need to isolate the important ones.
Verify whether the upstream should include and the exact .
When this may not apply: if you’re parsing non-standard strings (custom schemes, partial URLs, or legacy formats), you may need domain-specific parsing rules.
Fast sanity checks
Avoid common mistakes
This tool follows the standard URL structure used by modern browsers. Think of a URL as a template that can include optional pieces.
Square brackets mean “optional”.
In the browser, parsing is effectively:. If parsing fails, the tool marks the URL as invalid.
Variables / fields (what they mean):
Absolute vs relative URLs
This parser expects a fully-qualified URL. A string like is “relative” and may need a base URL before parsing.
Query strings
The query string begins with and uses \texttt{&} to separate key/value pairs.
Security note
Credentials in URLs can leak through browser history, logs, referrers, and analytics. Prefer headers or secure token storage.
Browsers represent it as (including the colon) to match the URL specification.
If you don’t explicitly specify a port, the URL uses the default (for example, for).
Yes. This tool displays query parameters as key/value pairs, and keeps the last value per key when building the list.
Relative URLs need a base to become absolute. Convert to an absolute URL first (for example,https://example.com/path?x=1).
Use a proper encoder to avoid breaking the query string. Try our URL encoder/decoder tool.
No. Parsing happens locally in your browser.
This tool is for inspection and debugging. It should not be treated as a security scanner, and it does not validate whether a hostname is reachable or safe.
Next step
If you’re fixing encoding issues, jump to URL encoder/decoder. If you’re comparing URLs, copy the parts you care about and paste them into a diff tool.
Use a simple chronometer (stopwatch) to track elapsed time down to milliseconds. Runs locally in your browser.
Normalize email addresses to a standard format for easier comparison. Useful for deduplication and data cleaning. Runs locally in your browser.
Estimate the time needed to consume a total amount at a constant rate, and get an expected end time. Runs locally in your browser.
Parse and decode your JSON Web Token (JWT) and display its content. All computation runs locally in your browser.
Know which file extensions are associated to a MIME type, and which MIME type is associated to a file extension. Includes a full MIME types table.
Generate random Lorem Ipsum placeholder text with customizable paragraphs, sentences, and word counts. Runs locally in your browser.