๐Ÿ“ Input JSON
๐Ÿ“ค Result
Waiting for input...
Drop file to upload

JSON Escape / Unescape Tool โ€” Free Online

JSON escaping adds backslash characters before special characters (quotes, newlines, tabs) so the string can be safely embedded in JSON or code. Unescaping reverses this โ€” removing the backslashes to restore the original string.

Use Escape to prepare a string for embedding in JSON. Use Unescape to recover the original text from an escaped JSON string. All processing is browser-based โ€” your data stays private.

When do I need JSON escaping?

When you need to embed a JSON string inside another JSON string, or when storing JSON in environments that require string escaping (HTML attributes, JavaScript template literals, etc.).

What characters get escaped?

Double quotes ("), backslashes (\), newlines, tabs, and other control characters. The escaped output is safe to use as a JSON string value.