Escape & unescape text for code · 文本转义反转义工具箱
Stop fighting backslashes and entities. EscapeLab converts any text into a safely escaped string for HTML, JSON, JavaScript string literals and CSV fields — and back again.
• Four formats: HTML entities, JSON string body, JavaScript/backslash escapes, CSV field quoting
• Escape and unescape directions, with tolerant best-effort decoding
• Options: non-ASCII to \uXXXX, escape quotes, quote every CSV field, CRLF endings
• One-tap cleanup: straighten curly quotes, strip zero-width characters, collapse spaces, normalise dashes
• Live stats: characters in / out and how many escape sequences were applied
• Saved snippets with labels, load or copy any snippet later, everything offline
把任意文本安全转义成 HTML 实体、JSON 字符串、JavaScript 字面量或 CSV 字段,也能反向还原;支持非 ASCII 转 \uXXXX、引号处理、弯引号清理等一键操作,实时统计,本地运行。