How to use JSON Escape

  1. Enter a string.
  2. Click Convert to escape for use inside a JSON string.
  3. Copy the result.

Example

Input

Your input or data here

Output

Result will appear here after running the tool

Frequently asked questions

When do I use JSON escape?
When building JSON manually or embedding a string in JSON; backslashes and quotes are escaped.

Embed this tool

Add JSON Escape to your own site, blog post, or internal docs — free, no signup. The widget runs entirely in your visitors' browsers, same as it does here.