JSON Escape / Unescape
Escape or unescape JSON strings with Unicode support to prevent parsing errors
Input Text
Result
How to Use JSON Escape / Unescape
- Input Your Text: Paste or type your JSON text in the input area.
- Choose Operation: Click either:
- Escape - to convert special characters to their escaped JSON representations
- Unescape - to convert escaped characters back to their original form
- Options:
- Windows-style line breaks: Use when working with Windows text files to properly escape newlines as \r\n
- Escape Unicode characters: Convert non-ASCII characters to their Unicode escape sequences (e.g., á to \u00E1)
- Unescape Unicode sequences: Convert Unicode escape sequences back to characters (e.g., \u00E1 to á)
- Beautify after unescape: Automatically format JSON objects and arrays for better readability
- Use Result: Copy the processed text to clipboard or download it as a file
What JSON Escape Does
JSON Escape converts special characters in a string to their escaped JSON representations to ensure they are properly encoded in JSON data. This prevents parsing errors when handling strings with quotes, newlines, or other special characters.
What JSON Unescape Does
JSON Unescape reverses the escaping process, converting escaped sequences like \n or \" back to their original characters. This is useful when you need to read or display the raw content of a JSON string.
JSON Escape/Unescape FAQs
Common questions about our JSON escape and unescape tool