Format, validate and minify JSON for debugging, reading and sharing — processed locally in your browser.
Ctrl+Enter Format Ctrl+M Minify Ctrl+Shift+C Copy
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.
// and /* */ comments, mismatched closing quotes, undefined/NaN/Infinity values, and byte-order marks (BOM).