What this tool does
String Escape / Unescape converts text between raw strings and escaped forms for code, JSON, HTML, or command contexts.
Escape and unescape strings for JSON, JavaScript, HTML, URLs, and regular expressions.
String Escape / Unescape converts text between raw strings and escaped forms for code, JSON, HTML, or command contexts.
It helps developers safely inspect quotes, backslashes, newlines, tabs, and special characters.
The browser applies selected escaping or unescaping rules and displays the transformed string.
Choose the target context first, because JSON, JavaScript, HTML, shell, and URL escaping are different.
Avoid double-escaping by checking what the receiving system expects.
String transformation happens locally in your browser.
Escaping is context-specific. Correct escaping for one language or format can be wrong or unsafe in another.
The string may have been escaped more than once.
No. Security-sensitive sanitization requires context-aware handling in the target application.
Properly escape quotes, backslashes, and special characters when building JSON payloads or JS strings.
Escape single quotes and other special characters to prevent SQL injection when constructing queries.
Unescape strings that appear encoded in server logs, API responses, or configuration files.