JSON tool

JSON Escape / Unescape

Escape strings for JSON or unescape JSON string values back to readable text.

Use the tool

Common use cases

  • Format API responses for debugging.
  • Clean JSON before sharing it in docs.
  • Prepare examples for prompts, tests and frontend code.

Example input

Line one
        "quoted value"
        /path/to/file

Related tools

FAQ

When should I escape JSON?

Escape text when it needs to be safely placed inside a JSON string value.

What does unescape do?

It converts escaped sequences like backslash-n and escaped quotes back into readable text.

Does this parse whole JSON objects?

This tool is for string escaping. Use JSON Formatter for complete JSON documents.