esc

JSON Escape / Unescape

Escape a string to place it in JSON, or unescape a JSON string. In the browser.

Live·100% in your browser — no upload

  

What is JSON Escape / Unescape

JSON Escape / Unescape prepares a string to be placed inside JSON (escaping quotes, line breaks and special characters) or removes the escaping to read the real text. Useful when you need to paste text into a JSON value without breaking it.

The operation happens in the browser with the native JSON functions.

How it works

  1. Paste the string to process.
  2. Press Escape to prepare it for JSON, or Unescape to read it.
  3. Copy the result.
  4. On invalid escaping you get a warning.

Frequently Asked Questions

What exactly does escaping do?
It turns the characters that would break JSON (quotes, backslash, line breaks, tabs) into their escape sequences (\", \n, \t…), so the string can live inside a JSON value.
Does it validate the JSON?
No, it works on the single string. To validate a whole document use the JSON Validator.
Is the data sent online?
No. Processing happens entirely in the browser.

Related tools