Skip to main content

JSON Escape / Unescape

Escape or unescape JSON string content in your browser.

Tool workspace

Escape mode only. Yes wraps the result as a complete JSON string literal.

Escape or unescape JSON string content in your browser. This is string escape/unescape — not a full JSON formatter or validator. Nothing you paste is uploaded.

How it works

Paste text, choose Escape or Unescape, then Convert.

Escape turns plain text into JSON string escapes (quotes, backslashes, newlines, tabs, and other control characters). Optionally include surrounding quotes for a complete JSON string literal.

Unescape turns JSON string escape sequences back into plain text. You may paste a quoted JSON string or an unquoted fragment of escapes.

Processing runs entirely in your browser. This tool does not pretty-print or validate full JSON documents—use JSON Formatter or JSON Validator for that.

Empty input clears the result—no error. Invalid unescape sequences show a clear error.

Examples

  • Escape: Line with "quotes" → Line with \"quotes\"
  • Escape + quotes: hello → "hello"
  • Unescape: "hello\nworld" → hello (newline) world

Privacy

Privacy: this tool processes text locally in your browser. We do not log or store what you paste. Login is not required.

FAQ

Is my text uploaded?

No. Escape and unescape run entirely in your browser. We do not log or store what you paste.

Is this a JSON formatter?

No. This tool escapes or unescapes JSON string content only. Use JSON Formatter to pretty-print documents and JSON Validator to check syntax.

Do I need an account?

No. All published tools work for guests without login.