⚡
usefultools.dev
URL

URL Parser – Split & Edit URL Parts

NEW

URL parser that splits a link into protocol, host, port, path segments, decoded query parameters and hash, then lets you edit params and rebuild the URL.

Runs 100% in your browser — your input is never uploaded or stored on our servers.

URL components
Protocolhttps:
Usernameuser
Passwordsecret
Hostshop.example.com:8443
Hostnameshop.example.com
Port8443(explicit)
Originhttps://shop.example.com:8443
Path/products/red%20shoes/42
Query?color=red&size=42&tag=sale&tag=new&q=running+shoes
Hashreviews(decoded)

Path segments (3)

  1. 1products
  2. 2red shoes
  3. 342

Query parameters (5) · decoded, editable

KeyValueRemove

Highlighted keys are repeated; servers may read the first, the last or all values.

Rebuilt URL
https://user:[email protected]:8443/products/red%20shoes/42?color=red&size=42&tag=sale&tag=new&q=running+shoes#reviews

Parameters are re-encoded like URLSearchParams (space becomes +). Need JSON? Try Query Params to JSON.

⚡

Quick Examples

Typical inputs and the results this tool produces.

Parts
https://example.com:8080/a/b
port 8080 · path /a/b
Port
http://example.com
port 80 (default)
Query
https://x.io/?tag=a&tag=b&q=red+shoes
tag=a, tag=b, q=red shoes
Relative
../logo.png (base https://x.io/a/b/)
https://x.io/a/logo.png
IDN
https://münchen.de/
xn--mnchen-3ya.de
📖

Overview

Long URLs with tracking codes, credentials and encoded characters are hard to read. This URL parser breaks a link into its components exactly as a browser sees them: protocol, username and password, host, hostname, port (including the default port for the scheme), origin, path segments, query string and hash.

Query parameters are listed in a decoded table that keeps repeated keys in order, so tag=a&tag=b shows as two rows. You can edit keys and values, add or remove parameters, change the hash, and copy the rebuilt URL. Relative links such as ../img/logo.png can be resolved against a base URL to see the final address.

Parsing uses the browser's built-in WHATWG URL parser, so results match what Chrome, Firefox and Node.js do. Nothing you paste is sent anywhere.

Why use this tool?

  • Read messy tracking links at a glance
  • Edit query parameters without breaking encoding
  • Resolve relative links against a base URL
  • Spot repeated keys and default ports
  • Runs locally, URLs never uploaded
⭐

Features

🧩

Every component

Protocol, credentials, host, hostname, port, origin, path, query and hash in one table.

📂

Path segments

The path is split into numbered, decoded segments.

🔑

Decoded query table

Parameters are decoded and repeated keys are kept and highlighted.

✏️

Edit and rebuild

Change, add or remove parameters and the hash, then copy the rebuilt URL.

↪️

Relative URLs

Resolve ./ and ../ links against a base URL, like a browser does.

🌐

Default ports and IDN

Shows the implied port for http, https, ws, wss and ftp, and flags punycode host names.

🛠️

How to Use

1

Paste a URL

Paste a full URL, or a relative one plus a base URL.

2

Read the parts

Check the component table, path segments and query parameters.

3

Edit parameters

Change values, add or remove rows, or edit the hash.

4

Copy the result

Copy the rebuilt URL with the Copy button.

🤔

Frequently Asked Questions