JSON Escape & Unescape
Escape text into a valid JSON string literal or unescape an escaped JSON string.
Input
Result
How to use
Escaping text
Escape turns raw text into a JSON safe literal. Unescape converts a literal back to readable text.
- Paste the text or literal.
- Choose Escape or Unescape.
- Copy the result.
Frequently asked questions
Which characters are escaped?
Quotes, backslashes, control characters and newlines are escaped according to the JSON specification.
Does it add surrounding quotes?
Yes, escaping produces a complete string literal including the surrounding quotes.
Related tools
JSON Formatter
Beautify and validate JSON with configurable indentation, error highlighting and one click copy.
HTML Escape & Unescape
Escape text for safe HTML output or decode HTML entities back to readable characters.
URL Encode / Decode
Percent encode text for safe URLs or decode a percent encoded URL back to text.
JSON Validator
Check whether your JSON is valid and see a clear explanation of any syntax problem.
JSON Minifier
Remove every unnecessary space and newline to produce the smallest possible JSON payload.
JSON Viewer
Read JSON in a clean formatted view and explore it as a collapsible tree.