JSON Escape/Unescape
JSON Escape/Unescape converts raw text to JSON-safe string content and decodes escaped JSON string content back to readable text locally.
Input Text
Characters
0 / 500,000
Quick Start
Common Scenarios
Embed text in JSON
escape quotes, backslashes, tabs, and line breaks before placing text inside a JSON string
Debug payloads
unescape copied string content to inspect the readable text
Logs and errors
decode escaped newlines and quotes from API logs or test fixtures
Code samples
prepare safe JSON string content for examples, fixtures, or request bodies
Usage Advice
Escape Boundaries
Privacy & Security
FAQ
A double quote ends a JSON string unless it is escaped as \". Escape converts quotes, backslashes, control characters, tabs, and line breaks to JSON-safe string content.
The output is string content, so you can paste it inside an existing JSON string value. If you need a complete JSON value, wrap the output in double quotes.
Yes. It accepts both escaped content such as He said \"hi\" and full JSON string literals such as "He said \"hi\"".
No. This tool only escapes and unescapes string content. Use JSON Formatter for full JSON objects and arrays.
No. Escaping is reversible formatting. Secrets should be encrypted, removed, or stored in a secret manager.