Nifty / Tools / JSON

JSON Escape

Turn text (or a JSON document) into an escaped string you can put inside JSON: quotes, backslashes and newlines are escaped.

json-escape
TextDrop a file here
Escaped
Loading…

Runs in your browser. Nothing you paste is uploaded or stored.

How to use the JSON Escape

  1. Paste the text on the left.
  2. Copy the escaped result.
  3. Put it between double quotes in your JSON.

Questions

Is my data uploaded anywhere?

No. The tool runs entirely in your browser. Nothing you paste or drop is sent to a server, logged or stored, so it's safe for API responses, config files and other private data.

Which characters are escaped?

Double quotes, backslashes and control characters such as newlines (\n), tabs (\t) and carriage returns (\r).

Related tools