ESC
String Escaper
Escape strings for JSON, SQL, JavaScript, HTML, shell. One input, multiple outputs.
Runs entirely in your browser · Your input is never transmitted
RAW
0 BReady
ESCAPED · JSON
OK—
How to use
- Paste raw text.
- Pick output flavor.
- Copy the escaped version.
Frequently asked
SQL dialect?
Standard ANSI — doubles single quotes and escapes NULL bytes. For engine-specific escapes (MySQL, Postgres), adjust manually.