What is String Escape/Unescape?
Escape multi-line text or strings with quotes so they can be pasted into JSON, JavaScript, Java/C, SQL, regular expressions, CSV, or a shell command — or turn an escaped string back into the original.
How to use
- 1
Choose escape or unescape.
- 2
Choose the target format (JSON, JS, SQL, …).
- 3
Copy the result.
Use cases
Multi-line text in JSON
Put a multi-line message into a JSON string value.
SQL strings
Safely insert a value that contains single quotes into SQL.
FAQ
Is my data saved or sent anywhere?+
No. Everything is processed in your browser and nothing is saved or sent.