URL Parser
- Protocol
- https
- Username
- user
- Password
- pass
- Hostname
- example.com
- Port
- 8080
- Host (host:port)
- example.com:8080
- Path
- /path/to/page
- Query string
- q=hello&lang=en
- Fragment
- section-2
- Origin
- https://example.com:8080
Path segments
- path
- to
- page
Query parameters
- q
- hello
- lang
- en
How to Use
Paste a URL into the input field and the tool breaks it into components (protocol, host, port, path, query parameters, fragment) instantly. Query parameters are also shown as decoded key-value pairs.
URL Structure
A URL has the form `protocol://username:password@hostname:port/path?query#fragment`. Each part plays a distinct role: server access (protocol + host + port), resource selection (path), additional context (query parameters), and within-page location (fragment). The tool uses the browser's built-in URL API for accurate parsing.
Use Cases
- Pull out just the query parameters from a complex URL (OAuth callbacks, tracking-laden share links)
- Check whether credentials (user:pass) appear in a URL
- Visually distinguish the fragment (after #) from the search string (after ?)
- Compare URL normalization before and after (trailing slashes, etc.)
- Sanity-check your own URL validation logic
Privacy
URL parsing is done entirely with the browser's URL API; the input never leaves your device. Even credentials embedded in URLs stay local — though you should still avoid pasting them while screen-sharing.