JSON formatter

Format, validate and minify JSON for debugging, reading and sharing — processed locally in your browser.

Input JSON 0 chars
Formatted output
{ }
Formatted output appears here
Paste JSON on the left to get started
Indent
Sort keys Escape unicode
Processed locally

Ctrl+Enter Format   Ctrl+M Minify   Ctrl+Shift+C Copy

About this tool

A JSON formatter beautifies JSON data by restructuring it with proper indentation, making it easy to read and debug. It also validates the input and pinpoints any syntax errors with the exact position.

Use it to debug API responses, clean configuration files, or share readable JSON with your team. The Repair function fixes common issues like trailing commas, single-quoted strings, unquoted keys, and JavaScript-style comments.

All data is processed locally on your device — nothing is uploaded to any server.

Frequently asked questions

Yes — if the input can't be parsed, an error is shown with the exact position. Use the Repair button to automatically fix common JSON issues.
Format (beautify) adds indentation and line breaks to make JSON human-readable. Minify removes all unnecessary whitespace for the smallest possible representation.
Repair handles: trailing commas, single-quoted strings, unquoted object keys, // and /* */ comments, mismatched closing quotes, undefined/NaN/Infinity values, and byte-order marks (BOM).
No hard limit — the tool runs entirely in your browser, limited only by your device's available memory. Files up to several MB process instantly.
⇆ JSON Diff
Base JSON
Compare JSON
Click Run Diff to compare.