A LITTLE ORDER, A LOT LESS WORK.
JSON String Escaper
Convert between plain text and a quoted JSON string literal.
01 — 18Start with data. Make room for work.
Batch processing available
INPUT
COMPARE WITH
Results will appear here
ONE OPERATION, MULTIPLE FILES
Do repeated work in one pass.
Files use the options above. Up to 10 files, 2 MiB each.
Files stay on your device. Download each result independently.
No files selected.
All processing happens in this browser.
How to use it
- Escaping creates a JSON string literal, including outer quotes and escaped newlines.
- Unescaping requires a valid JSON string, not a JSON object.
- JSON escaping is a data representation, not general HTML sanitization.
Why are there outer quotes?
They are part of a complete JSON string literal.
Can I escape more than once?
Yes, but each pass adds another encoding layer.