JSON String Escape & Unescape
Escape any text for safe embedding as a JSON string, or unescape a JSON string back to plain text. Handles quotes, backslashes, tabs, and unicode.
Runs 100% in your browser — nothing is uploaded.
Escaped output
Frequently asked
When would I use this?
When embedding user text into a JSON payload by hand, storing multi-line text as a JSON string, or debugging escaped JSON from an API response.
What does "wrap in quotes" do?
A valid JSON string literal is wrapped in double quotes. Turn this off if you want to paste the escaped text into an existing quoted string.
What characters get escaped?
Double quotes ("), backslashes (\), control characters (newlines, tabs, etc.), and unicode outside the ASCII range if needed. The same rules the JSON spec defines.
Related tools
- JSON FormatterFormat, validate, and minify JSON in your browser. See parse errors with line/co
- JSON ↔ YAML ConverterConvert between JSON and YAML in either direction. Handles nested objects, array
- HTML EntitiesEncode and decode HTML entities: &, <, ©, and every numeric &#nn
- Base ConverterConvert numbers between binary, octal, decimal, and hexadecimal. Supports huge n
- Cron BuilderPick a preset or enter your own fields to build a cron expression. Includes a pl
- CSS Beautifier & MinifierBeautify minified CSS with proper indentation, or minify pretty CSS to a single