JSON Tools

JSON Escape

Type or paste any text below to escape it for safe use as a JSON string value.

What is JSON Escaping?

JSON escaping converts plain text into a form that's safe to embed as a JSON string value — quotes, backslashes, and line breaks are replaced with their escaped equivalents so the result stays valid JSON.

How to use this tool

  1. Type or paste any text into the left-hand box.
  2. Click Escape Text.
  3. Copy the escaped, quote-wrapped result and drop it into your JSON.

Frequently asked questions

What characters get escaped?

Double quotes, backslashes, newlines, tabs, carriage returns, and any other control characters that aren't allowed to appear literally inside a JSON string.

Does the output include the surrounding quotes?

Yes — the output is a complete, valid JSON string value (including the opening and closing quotes), ready to paste directly as a value in a JSON document.

How is this different from JSON Stringify?

JSON Stringify is meant for escaping an already-valid JSON document as a nested string. JSON Escape is for arbitrary plain text — like a paragraph, log line, or code snippet — that you want to safely embed as one JSON string value.