URL Encode/Decode

Use encodeURIComponent / decodeURIComponent for query strings and paths.

100% in your browser · no uploads · no ad trackers

About URL Encode/Decode

URL Encode/Decode applies `encodeURIComponent` and `decodeURIComponent` to safely escape characters for query strings, path segments, and form data - or unescape them back to readable text. Useful for hand-building API URLs or debugging redirects with mangled parameters.

Input

Output

-

How to use

  1. 1.Paste text or URL.
  2. 2.Pick direction.
  3. 3.Copy result.

FAQ

What's the difference vs `encodeURI`?
This tool uses `encodeURIComponent`, which escapes characters like `&`, `=`, and `?` so they're safe inside a single query parameter. `encodeURI` would leave those alone.
Can I decode an entire URL at once?
Yes - paste the whole URL and it will decode all percent-encoded sequences in one pass.
Is URL Encode free?
Yes. Every tool on docsntools is 100% free with no signup, no watermarks, and no upload limits.
Are my files uploaded to a server?
No. All processing happens entirely in your browser. Your files never leave your device.
Does it work on mobile?
Yes - every tool is responsive and works in modern mobile browsers (Chrome, Safari, Firefox).