JSON String Escaper and Unescaper

Wrap text as a JSON string literal, or decode a quoted JSON string.

Try an example

Paste plain text to escape, or paste a complete quoted JSON string to unescape.

A quoted "example"

Expected output

"A quoted \"example\""

Common questions

What does the quoted output include?
It includes the surrounding quotes and JSON escapes for embedded quotes, backslashes, and control characters.
Can I unescape an object?
Unescape expects a single JSON string value. JSON objects and arrays belong in the formatter instead.

The tool processes your input in this browser. It does not upload the input itself.