How to use
- Paste text or a URL and choose Encode or Decode.
- “Component” mode (encodeURIComponent) escapes everything except letters, digits and
-_.!~*'()— use it for individual query values. - “Full URL” mode (encodeURI) keeps URL structure characters like
/ ? & =intact. - The URL parser below shows the protocol, host, path, hash and every query parameter in a table.
FAQ
What is the difference between encodeURI and encodeURIComponent?
encodeURI is meant for a whole URL and leaves reserved characters such as /, ? and & alone. encodeURIComponent encodes those too, which is what you want for a single parameter value.
Why does a space become %20 here but + elsewhere?
%20 is the standard percent encoding. + for spaces comes from HTML form encoding (application/x-www-form-urlencoded). Enable “Space as +” if you need that format.