Search for a tool or command
Escape any string so it can be safely embedded inside JSON.
The JSON Escape tool converts raw text into a form that can be safely placed inside a JSON string value. It escapes double quotes, backslashes, newlines, tabs, and other control characters according to the JSON specification. Use it whenever you need to embed arbitrary text, code, or logs inside JSON without breaking the syntax.
Add the string, code, or multi-line text you need to embed in JSON.
The tool replaces every character that would break a JSON string with its escape sequence.
Decide whether to include the wrapping double quotes around the result.
Paste it directly into a JSON string field without syntax errors.
Input
She said "hello"
and left.Output
She said \"hello\"\nand left.Turn a JSON-escaped string back into readable raw text.
Convert a JSON value into an escaped JSON string literal.
Pretty-print JSON with configurable indentation and instant validation.
Encode text or files to Base64, with an optional URL-safe variant.