Debugging query parameters
Split a long URL into its parameters, change one and copy the rebuilt address.
Guide
The URL tool has two halves. One calls the browser's own encodeURIComponent / decodeURIComponent or encodeURI / decodeURI to encode and decode a string. The other uses the native URL / URLSearchParams objects to take a full address apart and edit its query parameters. Parsing an address never visits the site behind it.
Updated 2026-09-102 min read
The URL tool has two halves. One calls the browser's own encodeURIComponent / decodeURIComponent or encodeURI / decodeURI to encode and decode a string. The other uses the native URL / URLSearchParams objects to take a full address apart and edit its query parameters. Parsing an address never visits the site behind it.
% escape raises an error.URLSearchParams rules.| Input | Output | Notes |
|---|---|---|
hello world?a=1, component encoding |
hello%20world%3Fa%3D1 |
Structural characters are encoded too |
| Full URI encoding | Keeps :/?=& and similar structure |
encodeURI semantics |
%E2%9C%93 |
✓ |
A valid percent escape |
decodeURI* throws on a truncated % or an invalid UTF-8 percent sequence; the tool does not try to guess a repair.new URL() accepts; a bare domain without https://, for instance, reports a format error.URLSearchParams.toString(), so spaces, repeated keys and escape forms may be normalised; a byte-for-byte round trip is not guaranteed.Split a long URL into its parameters, change one and copy the rebuilt address.
Encode a redirect URI or a search term on its own in component mode so the surrounding URL structure is not damaged.
encodeURI leave the question mark alone?Because it targets a complete URI and keeps structural characters; a single parameter value should go through encodeURIComponent.
No. The code only builds a URL object locally.
The URL and parameters you enter are processed in the browser only; no request is sent to the host inside them or to any third-party service.
Updated 2026-09-10
Encode and decode URLs, parse links, edit query parameters in a table and rebuild
Breaks a link into its parts; edit the query parameters and the URL is rebuilt live
| protocol | https: |
| host | example.com:8080 |
| hostname | example.com |
| port | 8080 |
| pathname | /api/search |
| hash | #results |
| origin | https://example.com:8080 |