JSON Formatter & Validator

Pretty-print, minify, and validate JSON with clear error messages that point at the exact line and column. Everything runs in your browser.

Notes

Validation runs as you type using the browser's own JSON parser, so what passes here is exactly what JSON.parse accepts: double-quoted strings, no trailing commas, no comments. "Sort keys" reorders object keys alphabetically at every level — useful for comparing two JSON documents.

Your JSON never leaves this page — no server, no upload, no tracking. The input is remembered only in this browser.