Paste JSON and get it back formatted, validated, or minified — live, with your choice of indentation, one-click copy, and a .json download. Invalid input gets the parser’s actual error message, not a shrug.
How to format JSON
- Paste into the box — formatting happens as you type, no button.
- Pick the style: 2 spaces, 4 spaces, tabs, or Minify.
- Copy the result or download it as a file.
The two jobs this does
Making JSON readable: an API response arrives as one 40,000-character line; pretty-printed at your indentation it becomes a structure you can actually scan, diff, and reason about. Making JSON small: the reverse trip strips every byte of optional whitespace before a payload ships. Both directions go through a real parse, which is what makes this a validator too — malformed input fails loudly with the engine’s own message instead of producing half-formatted garbage.
Honest notes on JSON itself
Everything here uses the standard JSON.parse/JSON.stringify, which means standard JSON
semantics: duplicate keys keep the last value, numbers beyond 2⁵³ lose precision (IDs that long
belong in strings), and comments aren’t JSON — if your “JSON” has comments, it’s JSONC and
needs them stripped first. These aren’t limitations of this tool so much as facts about the
format that bite people at 2am; better to read them here first. Encoded payloads inside your
JSON? The Base64 decoder and
URL decoder sit one click away.
Private by design
Real-world JSON is full of tokens, keys, and customer data — pasting it into a random website’s server is how leaks start. Here the parse and re-print run entirely in your browser; nothing is transmitted, logged, or retained.