JSON Escape / Unescape
Escape a string for use inside a JSON value, or unescape a JSON-escaped string.
JSON Escape wraps a raw string in JSON encoding rules: backslashes, quotes, newlines, tabs, and control characters are escaped with backslash sequences. Unescape reverses this — useful for reading escaped JSON string values.
How to Use
- 1
Paste your text
Enter the string you want to embed inside a JSON value — including any special characters or line breaks.
- 2
Escape or unescape
Click "Escape" to make the string JSON-safe, or "Unescape" to decode an already-escaped JSON string.
- 3
Copy the result
Copy the output and paste it directly into your JSON, code, or API payload.
Frequently Asked Questions
- Double quotes (" → \"), backslashes (\ → \\), newlines (→ \n), carriage returns (→ \r), tabs (→ \t), and other control characters.
Related Tools
CSS FormatterMinify or beautify CSS stylesheetsJS FormatterMinify or beautify JavaScript codeHTML FormatterBeautify or minify HTML markupHTML EscapeEscape special HTML characters to entitiesHTML StripperRemove all HTML tags to extract plain textHTML EntitiesSearchable reference for all HTML entity codesSQL FormatterBeautify and format SQL queriesXML FormatterFormat, validate, and minify XML documents instantly