不喜欢广告? 去 无广告 今天
JavaScript Escape and Unescape
开发人员
广告 · 消除?
广告 · 消除?
指导
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.
如何使用
Paste your text into the input area, select Escape 或者 Unescape mode, choose your preferred quote style (single or double), and click 转变. The tool applies JavaScript-specific escaping rules and outputs the result ready to paste into your code.
特征
- 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 支持 – Full Unicode handling including emoji, CJK characters, and supplementary plane characters
- 复制到剪贴板 – One-click copy of the escaped or unescaped result
- 仅客户端 – All processing happens in your browser with no data sent to any server
广告 · 消除?
