Why escape text for JSON?
Embedding multi-line text, code snippets or messages with quotes into a JSON document by hand means hunting every ” and newline. Paste your text above to get a correctly escaped JSON string.
How it works
The text goes through JSON.stringify locally: quotes become ”, newlines \n, tabs \t
and control characters their \uXXXX form. The result is a valid JSON value, ready to paste
into any document or API payload.