Free URL Parser: Decompose Any URL into Protocol, Host, Path & Query Parameters
Paste a URL and instantly see every component — protocol, host, port, path segments, query parameters as a table, and fragment. Decoded values shown alongside raw percent-encoded strings. Backed by the browser's native WHATWG URL parser.
| Protocol | https: | |
| Origin | https://www.toolk.site | |
| Hostname | www.toolk.site | |
| Port | 443default for https | |
| Pathname | /tools/url-parser | |
| Search | ?utm_source=newsletter&utm_medium=email&ref=top | |
| Hash | #features | |
| Full href | https://www.toolk.site/tools/url-parser?utm_source=newsletter&utm_medium=email&ref=top#features |
| # | Key | Value (decoded) | Raw value |
|---|---|---|---|
| 1 | utm_source | newsletter | newsletter |
| 2 | utm_medium | ||
| 3 | ref | top | top |
WHATWG URL Standard
Parser uses the same algorithm browsers use natively for every link and fetch — no homebrew regex, no edge-case bugs around IPv6, userinfo, or trailing slashes.
Query Parameters as Table
Search string split into key-value rows with both raw and decoded values shown. Spot double-encoding, repeated keys, and trailing whitespace at a glance.
Path Segments + Defaults
Path split into individual segments. Default ports (80 for HTTP, 443 for HTTPS, 21 for FTP) shown explicitly even when omitted from the URL string.
100% Client-Side
URLs often contain auth tokens, customer IDs, or internal hostnames. They never leave your browser. No fetch, no analytics, no tracking.
Every Component of Every URL, In One Glance
URLs look simple until you have to debug one. The classic problems — double-encoded query parameters, missing UTM tags, accidentally-quoted values, redirect chains that strip query strings, OAuth callback URLs with fragments where there should not be one — all come down to spotting the difference between what a URL string LOOKS like and what the WHATWG URL parser actually does with it. Our Free URL Parser shows you the parser's view: every component named, every query parameter as a table, decoded and raw values side-by-side, default ports made explicit. Same parser the browser uses for every link and fetch — so if it parses here, it parses everywhere.
Pair this with our URL Encoder / Decoder (percent-encode individual values), JSON Formatter (inspect API response bodies after parsing the request URL), JWT Decoder (decode tokens that appear in callback URLs), and the HTTP Status Codes Reference (understand the response code from the URL you are debugging).
The Seven URL Components (WHATWG URL Standard)
| Component | Example | Spec | Notes |
|---|---|---|---|
| scheme | https | URL Standard §3.1 | Protocol identifier. Common: http, https, ftp, mailto, ws, wss, file, data. |
| userinfo | user:password | URL Standard §3.2 | Authentication credentials (deprecated in URLs — use Authorization header instead). |
| host | www.example.com or 192.0.2.1 | URL Standard §3.3 | DNS hostname or IP address. IPv6 wrapped in square brackets. |
| port | 443 | URL Standard §3.4 | TCP port. Omitted when matching the default for the scheme. |
| path | /tools/url-parser | URL Standard §3.5 | Slash-separated hierarchical resource identifier. |
| query | utm_source=newsletter&ref=top | URL Standard §3.6 | After ? — typically key=value pairs joined by & (the application/x-www-form-urlencoded convention). |
| fragment | #features | URL Standard §3.7 | Client-side anchor. NEVER sent to the server in HTTP requests. |
The WHATWG URL Standard supersedes RFC 3986 for web URLs — browsers diverged from 3986 in incompatible ways years ago, and the WHATWG spec codified what actually works.
Six Daily Uses of a URL Parser
Debug analytics tags
Inspect UTM parameters in marketing links — utm_source, utm_medium, utm_campaign, utm_content, utm_term.
Validate redirects
Parse redirect chain URLs to verify the destination, query preservation, and any query-parameter injection.
Debug Open Graph URLs
Check what URL a Facebook / Twitter / LinkedIn scraper actually fetches when previewing a link.
Audit query injection
Spot accidentally-double-encoded values or trailing whitespace before they cause API errors.
Extract path parameters
Split /users/123/orders/456 into resource segments for REST API testing.
Manipulate search params
Add, remove, or change query parameters and rebuild the canonical URL.
Four URL Bugs This Parser Helps You Catch
1. Double Encoding
%2520 in a query value means it was encoded twice. The decoded view will still show literal %20 — that is the signal something is wrong upstream.
2. Stripped UTM
Some redirects (HTTP 301) drop query strings. Paste the final URL — if the UTM parameters are missing, your redirect step is dropping them.
3. Wrong Host (typo)
A URL like https://www.exam-ple.com is valid syntactically but probably wrong. The hostname row makes the typo obvious vs scanning a long URL string.
4. Fragment in API URL
Fragments are NEVER sent to the server. If your API endpoint URL has a # in it, the server is not receiving anything after that character.