Skip to content

JSON Escape / Unescape

Make text safe inside a JSON string, or turn it back.

Options

Private by design. This tool runs entirely in your browser. Your input is processed on your own device and is not uploaded by DO101.

About the JSON Escape / Unescape

Escapes quotes, backslashes, newlines and control characters so a block of text can be embedded in a JSON string — and reverses the process when you need to read an escaped string back.

How to use it

  1. 1Paste your text or escaped string.
  2. 2Choose escape or unescape.
  3. 3Copy the result.

What you get

  • Escapes quotes, backslashes, newlines and tabs
  • Optional surrounding quotes for a complete literal
  • Unescape direction included
  • Unicode safe
  • Runs in your browser

Frequently asked questions

When do I need this?

Whenever you paste multi-line text or text containing quotes into a JSON config, a test fixture or an API request body.

What is the "wrap in quotes" option?

It produces a complete JSON string literal, quotes included, ready to paste as a value.

People who use this tool usually reach for these next.