Paste a value
Add plain text to escape, or an already-escaped JSON string to decode.
Escape plain text into a JSON-safe string, or unescape one back to readable text. Handles quotes, backslashes, control characters, and Unicode escapes.
Escape: plain text becomes a JSON-safe string. Unescape: decode an escaped JSON string.
Three simple steps, with your content kept on your device.
Add plain text to escape, or an already-escaped JSON string to decode.
Pick Escape to make the value JSON-safe, or Unescape to decode it.
Grab the converted string with one click and paste it into your code.
Fast, focused, and made to be clear on every screen.
Escape quotes, backslashes, and control characters — or reverse the process.
Sequences like \u00e9 are decoded correctly, and control characters are escaped.
The conversion happens in your browser. Nothing is sent anywhere.
A JSON string converter is essential whenever text must be embedded inside a JSON document. Whether you need to escape json string content for a payload or unescape json string output from a log, double quotes, backslashes, and control characters such as newlines have special meaning in JSON, and raw versions of those characters break the document.
Escaping turns plain text into a JSON-safe string literal: quotes become ", backslashes become \, and control characters become sequences like and . The result can be pasted into a JSON file, an API payload, or source code without syntax errors.
To escape a JSON string online, paste your text into the editor, select Escape, and run the converter. The output is a ready-to-use JSON string value with all special characters encoded.
To unescape, switch the operation to Unescape and paste an already-escaped string such as hello "world". The tool decodes the escape sequences back into readable text, including Unicode escapes like é.
The escape operation covers every character the JSON specification protects: double quotes, backslashes, forward slashes when needed, and control characters such as newlines, tabs, carriage returns, backspaces, and form feeds.
Non-ASCII characters can either be left as-is or written as unicode escapes such as \uXXXX. The tool keeps your text readable while guaranteeing that the output is valid inside a JSON string literal.
Unescape accepts a JSON-escaped string and reverses the process, turning back into a real newline and é back into é. Raw unescaped characters that are not valid inside a JSON string are reported as an error rather than silently altered.
This strictness matters: guessing at malformed escape sequences could corrupt your data. The tool validates the input and only decodes strings that follow JSON rules.
JSON strings often contain sensitive values such as tokens, personal data, or internal configuration. Escaping and unescaping run entirely in your browser, so your text is never uploaded to a server.
There is no account, no queue, and no network dependency once the page is loaded. The tool works offline and processes even long strings instantly, with a clear input limit to protect your browser's memory.
Escaping is just one step in the JSON workflow. The JSON Validator checks that your documents are syntactically correct, and the JSON Formatter makes them readable.
When you need to compare versions of a payload, the JSON Diff Checker highlights the changes, and the JSON Schema Validator checks a document against a schema before it reaches production.
Escaped strings appear in many everyday places: JSON payloads logged from an API, values embedded in configuration files, strings passed through build steps, and data stored in message queues. A quick escape or unescape turns opaque sequences back into readable text or prepares text for storage.
The tool is also useful when debugging: log output often shows an escaped representation of a value, and unescaping it reveals the actual content without opening an editor.
Because everything runs locally, you can process tokens, credentials, and personal data without exposing them to a third-party service. Paste, convert, copy, and move on.
Both directions are equally fast, so the tool doubles as a quick way to verify your own output: escape a value, unescape it again, and confirm the round trip restores the original text exactly. That round-trip check catches quoting mistakes before they reach a log file or an API payload.
For teams that log JSON, the tool also makes logs readable: an escaped log line can be unescaped in seconds to reveal the message a user actually saw.
It makes the text safe to place inside a JSON string literal: double quotes become \", backslashes become \\, and control characters become sequences like \n and \t.
A JSON-escaped string such as hello \"world\" or a value containing \u00e9. Raw unescaped characters that are not valid inside a JSON string are reported as an error.
No. JSON escaping uses backslash sequences for quotes and control characters, unlike URL percent-encoding. This tool follows the JSON string rules.