JSON Escape & Unescape

Escape strings for embedding in JSON documents.

About the JSON Escape & Unescape

Escape a string for embedding inside a JSON string literal, or unescape \n, \t, \uXXXX and friends from JSON escapes back to plain text.

Frequently asked questions

Which characters does JSON require escaping?

Quote, backslash, and control characters below 0x20 — the tool handles all of them plus optional Unicode escaping.

Is this the same as stringifying?

The escape direction matches JSON.stringify on a single string; the unescape direction is the parse step.

Related tools