Initialising Workbench...
Percent-encode URLs or individual components (query params, path segments) and decode them back — all client-side.
Every tool runs entirely in your browser. Nothing you type is uploaded, stored, or logged on our servers.
Commonly needed when building API requests, encoding query parameters, or debugging malformed URLs with special characters like spaces, &, =, or non-ASCII characters.
The URL Encoder & Decoder converts between raw URLs and their percent-encoded equivalents in real time. Two modes are available: encodeURI preserves structural characters like /, ?, and & — use it for full URLs. encodeURIComponent encodes all reserved characters — use it for individual query parameter values or path segments.
The Swap button flips input and output so you can chain encode → decode without copy-pasting. The stats bar shows the character count difference between the raw and encoded form.
It percent-encodes text so it is safe to use in URLs and decodes percent-encoded strings back into readable text.
No. Encoding and decoding run client-side in your browser, so your data never leaves your machine.
Any time a value contains spaces or special characters like &, ?, or = and must be placed in a query string, path, or form data, it should be URL encoded.
encodeURIComponent escapes more characters and is meant for individual query values, while encodeURI preserves characters that form a full URL structure.
In form-encoded data, spaces are represented as plus signs. Decoding interprets this convention so the original spaces are restored.