{ jsonzen }0 bytes uploaded

JSON Escape / Unescape

Convert text to/from JSON string escape sequences. Runs in your browser.

<5ms🔒client-only
Inputpaste ⌘V
Paste JSON here…
Output
Auto-runs on paste⌘↩
Tip: press Ctrl + Enter to re-run, or paste a large JSON to auto-format.
// EXAMPLES
// HOW IT WORKS

In Escape mode, the tool runs JSON.stringify(input) and strips the outer quotes — giving you the inner escape sequences that would appear inside a JSON string. In Unescape mode, it wraps your input in quotes and runs JSON.parse() — converting \n to actual newlines, \" to literal quotes, etc.

// FAQ

When do I need to escape JSON?

When you're embedding a string inside another JSON document, or building JSON by hand and need to include special characters like quotes, backslashes, or newlines.

Why does my output have backslashes?

That's the escape sequence. \n means newline, \" means a literal quote inside a string, and \\ means a literal backslash.

Does this handle Unicode?

Yes. Characters outside the basic ASCII range can be represented as \uXXXX escape sequences. The unescape direction converts them back.