JSON Formatter & Validator
Pretty-print, minify and validate JSON in your browser. Instant, with the line and column of any error.
Format and validate JSON instantly
Paste raw JSON to beautify it with 2- or 4-space indentation, or minifyit to the smallest valid form. If it won’t parse, you get the exact error so you can find the stray comma or missing quote. It’s a strict parser (the same one your browser ships), so “valid” here means valid everywhere. Nothing is uploaded; your payloads stay on your machine.
Find the broken comma fast
When the parse fails, the panel under the output prints the parser’s own message plus the line and column where it gave up, so you can jump straight to the stray comma, the single quote, the unquoted key or the bracket that never closed. Browsers word that error differently, and some report only a character position, so the position is turned back into a line and a column here.
What is actually in this payload?
A valid parse also gets you a count of every object key and every array item in the document, counted all the way down through the nesting, not just at the top level. It is a quick way to see whether a response really came back with 250 records or 25, or to compare two payloads that look the same at a glance.
For the things you copy a hundred times a day
Tokens, config blobs, API responses, that one curl command. Developers copy more than anyone, and lose it just as fast. Relic is an encrypted, searchable memory for everything you copy: it auto-tags JSON, code, URLs and secrets on-device, keeps them forever, and syncs across machines, all end-to-end encrypted, open source, self-hostable. The free plan holds 250 MB and 100 saved items across 3 devices.