URL Encoder / Decoder
Percent-encode or decode URLs and components.
URL encoder and decoder for query strings, paths, and parameters
Percent-encode strings for use in URLs, or decode percent-encoded
strings back to their original form. Toggle between
encodeURIComponent (encodes ?&=#, used
for query parameter values) and encodeURI (preserves
URL-reserved characters, used for whole URLs).
Which one to use
- Component mode — encoding a single query parameter value, a path segment with slashes, or anything that will be assembled into a URL.
-
Full URL mode — sanitizing a complete URL while
keeping its
?,&, and/intact.
Common gotchas
Spaces become %20 in URL paths but + in
application/x-www-form-urlencoded form bodies — these are
different encoding standards. This tool produces %20,
matching the JavaScript built-ins. If your backend expects
+-encoded form data, replace %20 with
+ after encoding.
Double-encoding is the most common bug: passing an already-encoded
value to encodeURIComponent turns %20 into
%2520. If your URL looks like that, decode once first.
Privacy
Runs entirely in your browser via native
encodeURIComponent/decodeURIComponent. No
network requests.