Escape arbitrary text so it can be safely embedded inside a JSON string — converting quotes, backslashes, and newlines — or reverse the process to read an escaped value.
How it works
- Choose whether to Escape text for JSON insertion, or Unescape it for reading.
- Paste your text into the editor.
- Copy the safely escaped string, ready to be embedded within a JSON payload.
Frequently asked questions
When is it necessary to manually escape JSON?
You need this when you are manually writing JSON payloads and need to embed text that already contains quotes, backslashes, or literal newlines.
Which characters specifically get escaped?
Double quotes ("), backslashes (\), and control characters like newlines and tabs.
Is this the same concept as URL encoding?
No. JSON escaping and URL (percent) encoding follow completely different specifications designed for entirely different parsing engines.