Skip to content
ToolInstant

JSON Escape

Local

Escape text into a JSON string: quotes, backslashes, line breaks and tabs are escaped for you. Optionally write non-ASCII and emoji as \uXXXX codes.

Loading tool…

Ready · Runs in this browser · nothing uploaded

Developer tools · Free · No upload · No sign-up

How to use the json escape for free

  1. 1Type or paste text.
  2. 2Choose quotes, \uXXXX for non-ASCII and / escaping.
  3. 3Copy the JSON string.

Also useful for: json escape, escape json string, text to json string, json stringify online, escape quotes json.

  • Completely free, no account needed
  • Your data never leaves your device
  • Works on desktop and mobile

Frequently asked questions

Is this JSON escape tool free?+

Yes. Every tool on ToolInstant is free to use with no sign-up and no limits on how often you use it.

Is my data uploaded anywhere?+

No. Everything is processed inside your browser using JavaScript. Your input never leaves your device.

Does it work on mobile?+

Yes. ToolInstant works in any modern browser on phones, tablets and desktops.

How are emoji escaped?+

They stay as they are by default, which is valid JSON. With the \uXXXX option they become a surrogate pair, for example 😀 becomes \ud83d\ude00.