🔗
URL Parser & Query String Builder
Split a URL into protocol/host/path/query/hash. Edit each query param and rebuild a clean URL — uses URL & URLSearchParams APIs.
URL parts
| Protocol | |
| User:Pass | |
| Host | |
| Port | |
| Path | |
| Hash |
Query parameters
No query string.
Rebuilt URL
Uses standard URL & URLSearchParams — splits into protocol, host, path, query, hash; edit each param and rebuild a clean URL.
=
When you need to parse a URL
- Debug UTM tracking: ?utm_source=newsletter&utm_campaign=launch — verify each parameter.
- Build API URLs: add/remove query params dynamically — no manual string concat.
- Analyse affiliate links: Shopee/Lazada/Amazon links carry many tracking params — see what each one does.
- OAuth callbacks: redirect_uri has hash params — split to extract the token.
- SEO audits: detect URLs with redundant tracking params, suggest a canonical.
Standard URL structure
https://user:pass@example.com:8080/path/to/page?key=value&q=hello#section
└─┬─┘ └────┬────┘ └────┬────┘ └─┬┘ └──────┬──────┘ └──────┬───────┘ └───┬──┘
protocol auth host port path query hash Query string encoding tips
- Space: encoded as
%20or+(equivalent in query strings). - Non-ASCII characters: must be UTF-8 percent-encoded. E.g.
café→caf%C3%A9. - Special characters:
&,=,?,#inside values must be encoded so they aren't mistaken for separators. - The tool uses
URLSearchParams.toString()— encoding is automatic and standards-compliant.
Related
- URL Encode / Base64 — encode raw strings
- URL Slug Generator — SEO-clean slugs
- Regex Tester — URL pattern matching
- All tools
Related tools
See all tools →NEW
🔐
JWT Decoder
Decode JWT tokens — header, payload, claims with readable timestamps.
NEW🎨
JSON Formatter
Format / minify / validate JSON. Sort keys A-Z, custom indent, Ctrl+Enter shortcut.
NEW🔍
Regex Tester
Test regex live with match highlighting. 7 ready presets including Vietnamese.
NEW🔑
UUID / Hash / Base64 / URL
Bundle: UUID v4, SHA-256/512 hash, Base64 (URL-safe), URL encode.