Eternalsix

JSON String Escape / Unescape

Escape or unescape a string for embedding in JSON.

How to use

Pick Escape or Unescape, paste your text, and the result appears below. Click Copy to grab it.

About this tool

Turn any text into a JSON-safe string (escaping quotes, backslashes, newlines, tabs, and control characters) or reverse it back to the original. Handy for embedding snippets in JSON config or payloads. It runs entirely in your browser.

What you can use JSON String Escape / Unescape for

Frequently asked questions

What does escaping do?

It converts characters that would break a JSON string — double quotes, backslashes, newlines, tabs, and other control characters — into their escaped equivalents (\", \\, \n, \t) so the text can sit safely inside a JSON string.

Does the output include the surrounding quotes?

No — you get just the escaped inner content, ready to paste between your own quotes. Unescape accepts input with or without wrapping quotes.

Is my input uploaded?

No — escaping and unescaping happen entirely in your browser.

More tools

Browse all →
Base64 Encode / Decode
Encode text to Base64 or decode it back — instantly, in your browser.
Basic Auth Header Generator
Turn a username and password into a Basic Authorization header.
Binary to Text Converter
Convert text to binary and binary back to text.
Case Converter
Convert text between camelCase, snake_case, kebab-case, and more.
Color Converter
Convert colors between HEX, RGB, and HSL — with a live swatch.
Cron Explainer
Decode a cron expression into plain English and see its next runs.