brace.tools
/ json-formatter

JSON Formatter & Validator

Paste JSON, get it beautified, minified, or explored as a tree — with the exact line and column of any error. Nothing you paste ever leaves this page.

Input
Waiting for input…
Output
Formatted JSON will appear here.

About this tool

JSON (JavaScript Object Notation) is the standard format for data exchanged between APIs and applications. When it's minified or generated by a script, it's often unreadable — a single line of nested braces and brackets. This tool beautifies that into readable, indented text, or lets you minify readable JSON back down for production use. The tree view lets you collapse and expand nested objects and arrays to explore large payloads without scrolling through hundreds of lines.

Is my data uploaded anywhere?

No. Parsing and formatting both happen using your browser's built-in JSON engine. Nothing you paste is sent to a server.

Why does it say my JSON is invalid?

The most common causes are trailing commas, single quotes instead of double quotes, or unescaped characters inside strings. The error message includes the exact line and column so you can jump straight to the problem.

What's the difference between format and minify?

Format adds indentation and line breaks so humans can read it. Minify strips all unnecessary whitespace so the file is as small as possible — useful before sending JSON over a network.