JSON Formatter & Validator
Pretty-print, minify and validate in one place.
0 B uploaded — nothing you enter has been sent anywhere?
Unfold minified JSON and find where it breaks
One wrong comma or quote and the whole JSON fails to load. This tool checks the syntax, then expands it with 2-space indentation or squeezes it onto one line.
When it helps
Common snags
Tip Format and Minify overwrite the text in the box, so copy the original first if you need it.
Notes
Is it safe for API responses and config files?
The JSON you paste is not sent over the network. Data containing tokens stays in this browser.
Does it show where the error is?
It depends on your browser. Where the browser's error message includes a position (Chrome, Edge and other Chromium browsers), it reports the approximate line number and moves the cursor to that spot. In Firefox, Safari and others it shows the browser's own error message as-is and does not move the cursor (Firefox's message does include the line and column).