Encoders & Escapers

JSON Escape / Unescape

Escape any text so it is safe inside a JSON string — or turn an escaped string like {\"a\":1} back into readable JSON.

Loading JSON Escape / Unescape…

How it works

How to use the JSON Escape / Unescape

  1. Paste text

    Any text, including JSON you want to embed as a string value.

  2. Escape or unescape

    Quotes, backslashes, newlines, tabs and control characters are converted to their JSON escape sequences — or back.

  3. Copy the result

    Unescaped JSON is pretty-printed automatically when possible.

JSON escape sequences

Inside a JSON string, " and \ must be escaped as \" and \\, and control characters as \n, \r, \t, \b, \f or \uXXXX. A common case is "double-encoded" JSON found in logs and message queues — paste it into Unescape to get readable JSON back.

Built for developers

Why developers use it

  • Private by design

    Runs 100% in your browser. Nothing you paste is uploaded, logged or stored on a server.

  • Instant results

    Output updates as you type, with precise error locations when something is wrong.

  • Works offline

    Once loaded, the tool keeps working without a connection. Install it as an app if you like.

  • Free, no sign-up

    No accounts, no limits, no watermarks.

FAQ

Frequently asked questions

Should I include the surrounding quotes?

Include them when pasting a complete JSON string value; omit them when inserting into an existing string.

Does unescape accept strings without outer quotes?

Yes. Both "{\"a\":1}" and {\"a\":1} are accepted.

Is my data uploaded anywhere?

No. This tool runs entirely in your browser. Your input never leaves your device, is not logged, and works offline once the page has loaded.

Keep going

Related tools

Private by design

Your data never leaves your browser.

498 free tools that run locally — no uploads, no sign-up, no tracking of what you paste. They even work offline.

  • 498free tools
  • 0bytes uploaded
  • 23categories