JSON String Escape / Unescape — Free, Client-Side — Uttir
Uttir

JSON String Escape / Unescape

Escape a string for safe embedding inside a JSON document (handles quotes, backslashes, control characters), or unescape a JSON-encoded string literal back to its raw form.

Escape a string for safe embedding inside a JSON document, or unescape a JSON string literal back to its raw form.

JSON strings must escape a small set of characters: the double quote, the backslash, and the control characters (U+0000 to U+001F). Everything else may appear literally.

This tool implements the standard JSON escaping rules from RFC 8259. The "escape" direction converts a raw string into a JSON-safe form (the content you would put between double quotes). The "unescape" direction parses a JSON string literal back to its raw bytes.