JavaScript Escape and Unescape
Guide
JavaScript Escape and Unescape
Escape and unescape special characters in JavaScript string literals. Convert raw text with quotes, newlines, tabs, and Unicode into properly escaped JavaScript strings, or reverse the process to recover original text. Choose between single-quote and double-quote wrapping styles.
How to Use
Paste your text into the input area, select Escape or Unescape mode, choose your preferred quote style (single or double), and click Convert. The tool applies JavaScript-specific escaping rules and outputs the result ready to paste into your code.
Features
- Full JS Escape Sequences – Handles \’, \”, \\, \n, \r, \t, \b, \f, \v, \0, \uXXXX, \xHH, and ES6 \u{XXXXX}
- Escape & Unescape – Two-way conversion between raw text and JavaScript-escaped strings
- Quote Style Selection – Choose single quotes or double quotes for the output string literal
- Unicode Support – Full Unicode handling including emoji, CJK characters, and supplementary plane characters
- Copy to Clipboard – One-click copy of the escaped or unescaped result
- Client-Side Only – All processing happens in your browser with no data sent to any server
FAQ
Install Our Extensions
Add IO tools to your favorite browser for instant access and faster searching
恵 Scoreboard Has Arrived!
Scoreboard is a fun way to keep track of your games, all data is stored in your browser. More features are coming soon!
Must-Try Tools
View All New Arrivals
View AllUpdate: Our latest tool was added on Apr 1, 2026
