Skip to content
๐Ÿ”—

JSON Escape/Unescape

Developer

Escape or unescape special characters in JSON strings for safe embedding and storage.

0
0
Input
๐Ÿ”ค

Enter text above to escape for json context

Putting a JSON string inside another string, a JSON literal in someone else's document, a payload embedded in a shell command, a blob stored as a single value in a config file, means every quote and backslash inside that JSON needs escaping so the outer context doesn't misread it as the end of the string. This tool handles that specific character-level escaping: turn raw JSON into an escaped version safe to drop inside another string, or reverse it, unescaping a string back into readable JSON when it arrives in escaped form and needs to actually be read or edited.

See more about the JSON Escape/Unescape

It's a different job than formatting or validating structure; the content stays the same JSON, just represented as characters instead of a live object. Useful for debugging a webhook payload that arrives double-encoded, or preparing a value to embed safely inside a shell script or another document.

Key features

  • Clean interface
  • Fast processing
  • No signup required
  • Works offline

Quick answers for JSON Escape/Unescape

Does it only escape for JSON, or other languages too?
JSON is the default context, but a context selector also covers JavaScript, regex, HTML, and a general backslash mode, each escaping a different set of characters like quotes, angle brackets, or regex metacharacters.
How do I reverse an escape I already applied?
Switch to the Unescape tab, or click the Swap button after escaping to move the output back into the input and flip the mode automatically.
What exactly gets escaped in JSON mode?
Backslashes, double quotes, newlines, carriage returns, and tabs, each converted to its two-character JSON escape sequence like \n or \t so the string is safe to embed inside a JSON value.