JSON string escape / unescape

Turn raw text into a quoted, backslash-escaped JSON string — or paste a JSON string and get the original text back. Newlines, tabs, quotes and unicode are all handled.

Direction
Surrounding quotes
Non-ASCII
Your text
JSON string

Everything runs in your browser. No upload, no sign-up.

How it works

STEP 1

Pick a direction

Choose “Text → JSON string” to escape, or “JSON string → Text” to unescape. The labels and example update to match.

STEP 2

Paste your input

Drop in your raw text or a JSON string. It is converted instantly, right in your browser — nothing leaves your device.

STEP 3

Copy the result

Copy the escaped string (ready to drop into JSON or code) or the recovered text with one click.