Online tool for escaping text into a JSON string and unescaping JSON strings back to plain text.
Escape JSON String is a free online tool for turning plain text into a valid JSON string literal and unescaping JSON strings back to text. Processing runs locally in your browser.
Choose a related tool for the next step.
Data passed between tools is kept only in the current browser session.
Escape JSON String turns plain text into a valid JSON string literal. It escapes quotes, backslash, line breaks, tabs, and special characters so the string can be safely inserted into JSON payload.
The service can also unescape a JSON string and show plain text. Useful when building API requests, payloads, logs, configs, test data, and documentation manually, when Unexpected token errors come from unescaped quotes or line breaks.
Processing runs locally in your browser.