URL Parser & Breakdown Tool
Parse any URL into its components — protocol, host, port, path, query params, hash
Color-Coded Breakdown
Query Parameters
| Key | Value |
|---|
History
Build a URL from Components
This free online tool runs entirely in your browser — no data is uploaded to any server. It provides instant results with a clean, simple interface designed for both beginners and professionals. Bookmark this page for quick access whenever you need it.
Paste any URL and instantly see every piece broken out — protocol, host, port, path, query params, fragment. Each part is color-coded so you can spot where one component ends and the next starts without squinting at raw text. And everything runs in your browser. Nothing gets uploaded.
How It Works
The parser uses the browser's built-in URL API to split your input into its standard parts. Each component gets a color in the original URL string so you can visually trace where the hostname ends and the path starts. Query parameters show up in an editable table — change a value, delete a key, or add new pairs, then hit rebuild to get the updated URL back.
Examples
Debugging a Google Analytics campaign link
Your marketing team shared a tracking URL and you need to verify the UTM parameters are correct before launching.
https://example.com/signup?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale_2026&ref=hero_banner
Protocol: https
Host: example.com
Path: /signup
Params:
utm_source = newsletter
utm_medium = email
utm_campaign = spring_sale_2026
ref = hero_banner
Picking apart an API endpoint with auth
A colleague pasted a full API URL in Slack and you need the port and path separately for your config file.
http://admin:[email protected]:8080/v2/users?active=true&role=editor#filters
Protocol: http
Username: admin
Password: s3cret
Host: api.internal.co
Port: 8080
Path: /v2/users
Params:
active = true
role = editor
Hash: #filters
Cleaning encoded characters from a search URL
You copied a URL from your browser's address bar and it's full of %20 and %26 — hard to read at a glance.
https://shop.example.com/search?q=red%20running%20shoes&brand=Nike%26Adidas&page=2
Protocol: https
Host: shop.example.com
Path: /search
Params (decoded):
q = red running shoes
brand = Nike&Adidas
page = 2
Who Uses This
Pull apart API endpoints to grab the path, port, or specific query params for config files and environment variables.
Verify UTM tags on campaign URLs before sharing them — one typo in utm_source tanks your attribution data.
Compare URLs from staging and production to spot parameter differences causing inconsistent behavior.
See how URL anatomy actually works with real examples instead of memorizing textbook diagrams.
Common Mistakes
Pasting "example.com/page" without "https://" won't parse correctly. Browsers auto-add it, but the URL API doesn't. Add https:// or http:// before parsing.
A query param value showing %20 isn't broken — that's a space. Toggle the decode option to see the human-readable version. Sending the decoded version in code can actually break things if the server expects the encoded form.
Everything after the # symbol is a fragment. It never gets sent to the server. If you're trying to pass data to your backend through the hash, it won't arrive — use query parameters instead.
Technical Details
- Processing: 100% client-side using the browser's native URL API
- Browser Support: Chrome, Firefox, Safari, Edge (all modern browsers)
- URL Length: No artificial limit — handles URLs up to the browser's maximum (~2MB)
- Standards: Follows RFC 3986 (URI syntax) and the WHATWG URL Standard
Frequently Asked Questions
What are the main parts of a URL?
A URL has up to seven parts: protocol (like https), username and password (rare but valid), hostname, port number, path, query string, and fragment hash. Most everyday URLs only use protocol, hostname, and path. The rest show up when you're dealing with APIs, internal tools, or tracking links.
How do query parameters work in a URL?
Query parameters come after the ? in a URL. They're key-value pairs separated by & — for example, ?color=blue&size=large. Servers read these to filter results, sort data, or track where traffic came from. You can have as many as you want, though extremely long query strings can hit server limits.
What does %20 mean in a URL?
%20 is a space character in URL encoding (also called percent-encoding). URLs can't contain literal spaces, so they get converted to %20. Other common ones: %26 is &, %3F is ?, and %23 is #. This tool can decode them for you so the URL is actually readable.
Is the hash/fragment sent to the server?
No. The fragment (everything after #) stays in the browser. The server never sees it. That's why single-page apps use hash-based routing — changing the hash doesn't trigger a new server request. If you need to send data to the server, put it in query parameters instead.
What's the maximum length of a URL?
There's no official limit in the spec, but browsers cap it around 2,000 to 8,000 characters depending on the browser. Internet Explorer had a strict 2,083-character limit. Most web servers default to accepting around 8KB. If your URL is longer than that, you probably want to move some data into the request body instead.