Tools
Get Pro

Viewer, Minify & Escape

Three single-purpose tools for jobs the formatter also covers, when you want just that one job. All of them run in your browser, work offline and remember your last input on this device only.

JSON Viewer

JSON Viewer shows your JSON as a collapsible tree.

  • Expand all and Collapse open or close every node.
  • Click any key to copy its path, for example $.users[0].address.city, ready for JSONPath or jq.
  • Open in Formatter takes the JSON to the formatter for table and graph views, repair and share links.

JSON Minify

JSON Minify removes all whitespace and shows the size before and after, with the percentage saved.

  • Numbers are kept exactly as written, including 64-bit IDs such as 9007199254740993 and decimals such as 1.50.
  • Invalid JSON is marked at its line and column. Use the formatter’s Repair to fix it.

JSON Escape / Unescape

JSON Escape / Unescape turns text into a JSON string literal and back.

  • Escape gives the same result as JSON.stringify(text). Minify JSON first compacts valid JSON before escaping it. Outer quotes keeps or drops the surrounding ".
  • Unescape accepts the string with or without its quotes. Strings escaped two or more times are unwrapped in one step, and the result is formatted when it is JSON.
  • Switching direction takes the result with it, so you can check a round trip.
  • If you paste plain JSON into Unescape, it tells you there is nothing to unescape.

Found a mistake? Suggest an edit on GitHub.