Tool

JSON Escape / Unescape

Escape text for embedding in JSON strings, and unescape back

How to use

  1. Type or paste text to escape into the left pane; the escaped JSON string literal appears on the right.
  2. Paste an escaped string to unescape it back to plain text.
  3. Both directions run as you type.

About this tool

Embedding user text into JSON — config files, prompt templates, API payloads — fails on the same four characters every time. This tool applies the exact escaping JSON.parse expects, and unescapes back losslessly, including surrogate pairs for emoji.