JSON Escape/Unescape

Escapes text for safe inclusion in JSON, or unescapes a JSON string.

Lilu Baba's JSON Escape/Unescape tool safely converts text with quotes, newlines and special characters into a valid JSON string literal, or reverses the process.

How to use this tool

  1. Choose Escape or Unescape.
  2. Paste your text or JSON string.
  3. The result updates instantly.

JSON Escape/Unescape — frequently asked questions

It converts special characters like quotes and newlines into their JSON-safe escape sequences (e.g. " becomes \").

An error message is shown instead of a result.