Escape Encoding and Decoding

Feedback
Note: `escape`/`unescape` are historical functions. Percent encoding will encode each UTF-8 byte into %XX.

        

📖 Description

Handles URI encoding, HTML entity escaping, and JavaScript escape().

Select the type of conversion you wish to perform, such as URI encoding or HTML escaping.

Paste your text in the input box.

Click the "Convert" button. The converted result will be displayed in the output box.

encodeURIComponent / encodeURI uses UTF-8 and generates percent escapes. They are recommended for URL encoding.

escape / unescape are legacy functions. Escape will represent non-ASCII characters as %uXXXX or %XX (for compatibility with older systems) and are not recommended for URL escaping.

The percent-encoding option encodes the string to UTF-8 and then represents each byte as %XX (similar to encodeURIComponent, but will encode characters that are already %XX again. This is suitable for scenarios where "full-byte" escaping is required).

HTML escaping is used to prevent HTML injection (converting characters like < > to entities).