Skip to main content
>_devtools

JSON Escape

Escape text for use inside a JSON string: quotes, backslashes, newlines, control characters, and optional unicode escapes.

What this does

Paste plain text to escape it for use inside a JSON string. Quotes, backslashes, line breaks, and control characters receive JSON escape sequences.

Example

Input:
She said "hi"

Escaped text:
She said \"hi\"

Limits and behavior

  • The output is the contents of a JSON string, without surrounding quotes.
  • Optional Unicode escapes can represent non-ASCII characters.