Runs in this tab · nothing uploaded

EN

English

हिन्दीComing soon

EspañolComing soon

Pinned
HelpyTools

More

JSON escape

Escape text for use inside a JSON string: quotes, backslashes, tabs and line breaks become \", \\, \t and \n.

Runs in your browserNothing uploadedWorks offline

Set up for this job. It runs on String escape and unescape, where every option is there to change.

Loading JSON escapeRuns on this device. Nothing is uploaded.

Questions

Are the surrounding quotes added?

No. You get the inside of the string, so you can paste it between the quotes you already have.

What about accents and emoji?

They are left as they are, which JSON allows. Tick Escape non-ASCII to write them as \u escapes instead, for systems that only accept ASCII.

How do I go the other way?

Open JSON unescape, or switch Direction to Unescape on this page.

All developer tools

↑ ↓ move↵ openesc close

The tray

Install HelpyTools

Get HelpyTools on your home screen or Dock. It opens in its own window, and tools you have opened once keep working offline.