Text to Escaped JSON. Paste text. Get a JSON string.

Turn plain text into a JSON string you can paste into code, with quotes and line breaks escaped.

Run it here.