JSON Escape & Unescape
Escape strings for safe inclusion in JSON (handling backslashes, quotes, newlines, control characters) or unescape JSON strings back to plain text.
Get notified the day we launch. No spam, ever.
What to expect
Built for developers
Escape text for safe inclusion in JSON strings by converting backslashes, quotes, and control characters, or unescape JSON string values.
Runs client-side. Your data never leaves your browser.
No ads, no trackers, no popups. Pure focus.
Paste code or upload files. Both modes supported.
Share output with teammates via a permanent link.
Adapts to your system preference automatically.
Fully responsive. Works on any screen size.
About this tool
OpenFormatter's JSON Escape & Unescape tool escapes and unescapes strings for JSON online for free. Escapes backslashes (\\), double quotes (\"), newlines (\n), carriage returns (\r), tabs (\t), and control characters (\uXXXX). Unescapes all standard JSON escape sequences. Useful for embedding strings inside JSON, debugging JSON payloads, and working with JSON APIs. All processing happens in your browser.