JSON Formatter, Validator & Viewer

About this tool

Paste any JSON to pretty-print it (2-space, 4-space or tab indent), minify it to a single line, validate it, sort all keys alphabetically, or escape/unescape it. The interactive tree view lets you fold and unfold nested objects and arrays to explore large payloads.

Syntax errors are reported with the exact line and column plus a snippet pointing at the problem. Everything runs locally in your browser using the native JSON parser — your data is never uploaded, so it is safe for tokens and production payloads.

Related tools

JSON to TypeScriptJSON to YAMLJSON Path Query