</> JSON Data Tool
Home / JSON Escape

Free Online JSON Escape / Unescape Tool

Escape special characters in a string for safe JSON embedding, or unescape a JSON string literal back to raw text — all in your browser.

Escape Mode

Convert any text into a valid JSON string literal, escaping quotes, backslashes and control characters.

Unescape Mode

Paste a JSON string literal and recover the original raw text, including newlines and tabs.

Secure & Local

Escaping runs entirely in your browser. Your data is never uploaded.

How to escape or unescape JSON

  1. Paste your text or JSON string literal into the input area.
  2. Choose Escape or Unescape and click Convert.
  3. Copy or download the result.

JSON escaping explained

JSON strings must escape certain characters — double quotes, backslashes, and control characters like newlines — using a backslash prefix, or the JSON becomes invalid. Use Escape to prepare a value for embedding inside JSON, and Unescape to read a JSON string literal back as plain text.

All processing runs client-side in your browser. No data is ever uploaded to a server.