Skip to content
Categories
URL Parser
Break a URL down into its individual components.
Overview
- Breaks a URL down into components such as protocol, hostname, port, pathname, query parameters, and hash.
- Uses the browser's standard URL API, so the result matches how the URL would actually be interpreted by a browser or Node.js.
- Even when multiple query parameters share the same key, every key-value pair is listed individually.
Usage
- Enter the URL you want to parse into the input field.
- Click the "Parse" button.
- Components such as protocol, hostname, pathname, and query parameters are displayed.
Example
Input
https://example.com:8080/users?id=123&name=taro#profile
Output
protocol: https: hostname: example.com port: 8080 pathname: /users queryParams: id=123, name=taro hash: #profile
Use Cases
- Quickly checking the value of a specific query parameter within a long, complex URL
- Breaking down and verifying the components (hostname, path, etc.) of a redirect target URL or API endpoint
- Listing out a URL's components to record its structure in documentation or investigation notes
FAQ
Is the URL I enter sent anywhere?
No. Parsing is handled entirely in your browser using the standard URL API.
What happens if there are multiple query parameters with the same key?
Every key-value pair is listed individually.
What happens if I enter a URL without a protocol?
The message "The URL format is invalid." is displayed. Please include a protocol such as https://.
Notes
- A URL without a protocol (such as https://) results in an error. Enter a full URL, not a relative one.
- A URL containing credentials (username/password) uses a format that browsers consider deprecated. Avoid using it in production.
- The entered URL exists only on the page and is lost on reload.
Related Tools
Break a query string down into a list of keys and values.
Enter keys and values to generate a query string.
Generate a QR code from text or a URL.
Generate meta tags with OGP and Twitter Card support from a title and description.