JSON input
Paste an API response, config file or log snippet.
Formatted JSON
Formatted output will appear here.
Structure stats
Quickly check keys, nodes, nesting and size.
Syntax location
No syntax errors.
Collapsible tree
Valid JSON will appear as a collapsible tree.
What is this JSON formatter?
JSON Formatter & Validator formats, minifies, validates and renders JSON as a collapsible tree in your browser. It is built for API responses, configuration files, logs and copied snippets.
JSON text is processed locally in the browser. The tool does not upload, store or send the pasted content.
Features
- Format JSON with readable indentation
- Minify JSON into a compact string
- Validate malformed JSON with line, column and nearby context
- Browse objects and arrays in a collapsible tree view
- Copy or download the formatted result locally
How to use
-
Paste JSON
Paste API output, config JSON or a log snippet into the input editor.
-
Format or validate
Use Format, Minify or Validate. Syntax errors show the exact line, column and nearby text.
-
Inspect the tree
Expand or collapse object and array nodes to scan deeply nested data.
-
Copy or download
Copy the output or download the formatted JSON file when it is ready.
FAQ
Is my JSON uploaded?
No. Parsing, validation and tree rendering run locally in the browser.
Can it locate syntax errors?
Yes. When the browser reports an error position, the tool converts it into line and column and shows nearby context.
Can it fold and expand JSON?
Yes. Valid JSON is rendered as a tree with expandable objects and arrays.