Format & validation

JSON Escape

Escape text so it can be embedded inside a JSON string.

Text input
Output

Result appears here after you select

{ } How to use

  1. Paste the text you want to put inside a JSON string.
  2. Select Process, then copy the escaped text.

{ } How it works

JSON Escape works on the text you provide. Select Process ▸ and it runs entirely in your browser — nothing is uploaded to a server — then shows the result in the Output panel.

Input

  • Text input — paste or type your input in the left panel (use Sample for an example)

Output

TXT text — copy or download it from the Output panel.

{ } Common uses

  • Embed a snippet of code, HTML or a multi-line message in a JSON value by hand.
  • Build a JSON string for a curl command or a config file without a syntax error.
  • See exactly which characters in your text need escaping.

{ } Limitations

  • The result is the inside of a JSON string — the surrounding quotes are not added, so you place them yourself.
  • Non-ASCII characters are left as themselves rather than turned into \u escapes, which is valid JSON for any UTF-8 document.

{ } FAQ

Is my data uploaded to a server?

No. Everything runs locally in your browser — your files never leave your device.

Can I process more than one file at once?

This tool works on one input at a time.

Is this tool free?

Yes — it’s completely free and needs no sign-up.

What gets escaped?

Backslashes, double quotes, and the control characters — newline becomes \n, tab \t, and anything else below a space becomes a \u escape.