JSON Tools

JSON Escape / Unescape

Escape text for a JSON string or turn an escaped JSON string back into readable text.

Text or escaped JSON string

Converted result

What this tool does

JSON strings require quotes, line breaks, tabs and backslashes to be escaped. This tool handles that conversion without changing the underlying text.

How to use it well

Start with a small sample, check the output, then paste the full text when the result looks right. For important production data, review the output before saving or sharing it.

Common uses

  • Prepare strings for JSON payloads
  • Read escaped log values
  • Check copied API content
Guide

JSON String Escaping: Quotes, New Lines and Backslashes

Learn why JSON strings need escaping and how to avoid double-escaping copied values.

Read guide

Questions

Does escape mode create a full JSON object?

No. It returns a valid JSON string value, including the surrounding quotation marks.

What can unescape mode read?

It accepts a quoted JSON string or an escaped string fragment such as a line containing backslash-n.