Tools

Home
URL Encode/DecodeUTM BuilderURL Slug GeneratorOpenGraph TesterBase64 Encode/Decode

URL Parser & Breakdown Tool

Parse any URL into its components — protocol, host, port, path, query params, hash

Your files never leave your browser
Quick fill:

Color-Coded Breakdown

Protocol
Username
Password
Hostname
Port
Path
Query String (raw)
Fragment / Hash
Origin
Full URL (reconstructed)

Query Parameters

KeyValue

History

Build a URL from Components

Enter components above and click Build URL

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

Paste URL
➔
Parse Components
➔
View & Edit

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.

INPUT
https://example.com/signup?utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale_2026&ref=hero_banner
OUTPUT
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.

INPUT
http://admin:[email protected]:8080/v2/users?active=true&role=editor#filters
OUTPUT
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.

INPUT
https://shop.example.com/search?q=red%20running%20shoes&brand=Nike%26Adidas&page=2
OUTPUT
Protocol: https Host: shop.example.com Path: /search Params (decoded): q = red running shoes brand = Nike&Adidas page = 2

Who Uses This

👨‍💻 Developers

Pull apart API endpoints to grab the path, port, or specific query params for config files and environment variables.

📈 Marketers

Verify UTM tags on campaign URLs before sharing them — one typo in utm_source tanks your attribution data.

🔎 QA Testers

Compare URLs from staging and production to spot parameter differences causing inconsistent behavior.

🎓 Students

See how URL anatomy actually works with real examples instead of memorizing textbook diagrams.

Common Mistakes

Forgetting the protocol

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.

Confusing encoded vs. decoded values

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.

Treating the hash as a server-side param

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

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.

Share: