JSON Escape & Unescape Online

Escape quotes, newlines, tabs, and backslashes in JSON strings for inclusion in source code, or decode escaped JSON payload strings back to clean formatted JSON.

JSON Escape & Unescape Tool

Escape JSON special characters for code strings or convert escaped strings back to readable JSON.

Layout:
Editor Height:
Input Text1 lines
Result

Why Escape JSON Special Characters?

When embedding JSON payloads inside string variables in languages like JavaScript, Java, Python, or shell cURL commands, special characters such as double quotes (`"`), newlines (`\n`), and backslashes (`\`) must be escaped with a leading backslash. Failing to escape quotes causes syntax errors or broken API payloads.

Need to format unescaped JSON?

Use our JSON Formatter to format and validate your JSON string.