Escape / Unescape
Escape or unescape HTML, URL, JavaScript, SQL and more โ instantly in your browser.
About Escaping & Unescaping
Escaping converts special characters into safe representations that can be embedded in a specific context without breaking the syntax. For example, < in HTML must be escaped as < to prevent it being interpreted as a tag. URL encoding (percent-encoding) replaces characters like spaces and special symbols with %XX sequences. JavaScript string escaping adds backslashes before quotes and control characters. SQL escaping prevents injection by escaping single quotes.
Unescaping reverses this process, converting encoded sequences back to their original characters. This tool handles HTML entities (both named and numeric), URL/percent encoding, JavaScript strings, SQL string escaping, and Base64 encoding/decoding. All processing runs locally in your browser.
How to Use
- Choose Escape or Unescape mode.
- Select the encoding type: HTML, URL, JavaScript, SQL or Base64.
- Paste or type text in the left panel โ the result appears instantly on the right.
- Click โฟป Copy to copy the output, or โ Swap to move the output back to input.
Frequently Asked Questions
%20 or +, and special characters like & become %26. HTML encoding is used inside HTML documents โ the characters <, >, &, and " are replaced with named entities like < and &. You need both when embedding user data in an HTML page that also contains URLs.