Encode, decode and whole URL
- Encode — percent-encodes spaces, special characters and non-ASCII text with
encodeURIComponentas%XX. Best for building one query value or path segment. - Decode — turns a percent-encoded string back into the original text. A broken
%sequence is reported as an error. - Whole URL — uses
encodeURIto keep structural characters like:/?#&=and encode only spaces and non-ASCII text, making a finished address safe.
Why is a space %20?
This tool follows the encodeURIComponent rule, so a space is always %20. Writing a space as + is the form-submission rule; the standard for URL paths and queries is %20.
More text tools for developers
- Bundle Korean and emoji safely with Base64 encoding.
- Tidy API responses with the JSON formatter.