Data WorkbenchJSON / JSON Formatter
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
Results will appear here
Ctrl + Enter

All processing happens in this browser.

HOW IT WORKS

How to use it

  1. Escaping creates a JSON string literal, including outer quotes and escaped newlines.
  2. Unescaping requires a valid JSON string, not a JSON object.
  3. 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.

Save these options

Save tool options only, without input text or file contents. Up to 20 presets.