FreeDev Tools

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. 1

    Paste your text

    Enter the string you want to embed inside a JSON value — including any special characters or line breaks.

  2. 2

    Escape or unescape

    Click "Escape" to make the string JSON-safe, or "Unescape" to decode an already-escaped JSON string.

  3. 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.