← All Tools
URL Parse🔒 100% local
Parse URLs into components. Privacy-first, no server uploads.
Related Tools
Splits one URL into its ten components using the browser's built-in URL parser and prints them as labelled lines: protocol, host, hostname, port, pathname, search, hash, username, password and origin. The string is handed to the same URL class your browser uses for navigation, so unusual inputs are normalised the way a browser would normalise them, and everything runs in the page. Unlike the URL Parser tool on this site, it stops at the raw search string and does not break the query into individual parameters.
How to use it
- Paste an absolute URL into the Input box - a scheme such as https:// is required.
- Press Process.
- Read the labelled field list, or Copy Output to keep the breakdown.
Worked example
https://example.com:8080/p?q=1#hbecomesProtocol: https:
Host: example.com:8080
Hostname: example.com
Port: 8080
Pathname: /p
Search: ?q=1
Hash: #h
Username:
Password:
Origin: https://example.com:8080https://user:[email protected]:8080/path?query=value#fragmentbecomesHost: example.com:8080
Port: 8080
Username: user
Password: pass
Origin: https://example.com:8080an explicit port keeps the origin non-default; the page's default input is this URL
When to use it
- You need to confirm which host and port a long redirect URL really points at, ahead of a CORS or cookie-domain problem.
- You are debugging credentials in a connection string and want to see whether user and password survived the copy.
- You want the origin value exactly as the browser computes it, for a Content-Security-Policy or CORS header.
What it does not do
- A relative or scheme-less input is not resolved against anything: example.com/path throws and the page prints 'Invalid URL'. Always include the scheme.
- The query string is shown whole in the Search line. To see parameter names and values, including their decoded forms, use the URL Parser tool, which adds a Search Params line.
- When the port is the scheme default it is dropped from host and left as 'default' in the Port line, so an https URL on 443 reports 8080-style ports only when they are genuinely non-default.
- The Password field prints whatever was in the URL in clear text on screen, so be careful pasting URLs that carry live credentials.