String Escape/Unescape
Multi-rule string escape and unescape tool supporting JSON, JavaScript, Java, HTML, XML, CSV, XSI and custom mappings
JSON rule: escapes backslashes, quotes, slashes, newlines, carriage returns and control characters.
String Escape/Unescape Guide
This tool converts strings across common escaping rules and supports reverse conversion, useful for API integration, log cleanup, code generation, config templates, and text migration tasks.
Features
- Supports JSON, JavaScript, Java, HTML, XML, CSV and XSI rules.
- Supports custom mappings for private protocols and legacy formats.
- Includes swap, copy, clear and sample actions for faster workflow.
- Includes a built-in rule reference table for quick troubleshooting.
How to use
- Enter the source text.
- Select a rule or custom mapping.
- Click Escape or Unescape to generate the result.
- Copy the output for code, configuration or data processing.
Rule reference
| Rule | Main escape chars | Description |
|---|---|---|
| JSON | \" \\ \/ \b \f \n \r \t | JSON standard escapes |
| JavaScript | \' \" \\ \n \r \t \b \f \v \0 \u | ECMAScript escapes |
| Java | \b \t \n \f \r \" \\ \u | Java string escapes |
| HTML4 | & < > " ' | HTML4 entities |
| HTML3 | & < > " | Basic HTML3 entities |
| XML 1.0 | & < > " ' | XML 1.0 entities |
| XML 1.1 | & < > " ' | XML 1.1 entities |
| CSV | " -> "" | CSV quote escaping |
| XSI | \0 \a \b \f \n \r \t \v | XML Schema instance escapes |