Escape JSON String

Escape JSON strings instantly. Encode quotes, backslashes and special characters for safe usage in APIs and code.

Tool



Example

Hello "world"

Escaped:

Hello \"world\"

How to use

  1. Paste your text
  2. Click Escape or Unescape
  3. Copy the result

What is JSON string escaping?

JSON string escaping converts special characters like quotes and backslashes into a safe format. This is necessary when embedding text inside JSON.

You can also format full JSON using our Base64 Encoder or encode URLs with the URL Encoder.

Related tools

🔐 Base64 Encoder / Decoder 🔗 URL Encoder / Decoder 🔤 HTML Encoder / Decoder