What is this JSON formatter?
A free, browser-based JSON formatter and beautifier. Paste minified or messy JSON and it pretty-prints it with your chosen indent (2 spaces, 4 spaces, or a tab), so nested objects and arrays are easy to read. A minify toggle does the opposite, collapsing JSON onto one compact line. If the JSON is invalid, it shows the error with the exact line and column. Everything runs locally in your browser, so your data is never uploaded.
How to use it
- Paste your JSON into the box on the left.
- Choose an indent (2 spaces, 4 spaces, or a tab), or turn on Minify for a compact single line.
- If the JSON is invalid, read the error banner for the line and column to fix.
- Copy the formatted output or download it as a .json file.
Common use cases
- Reading an API response or log line that arrived as one long minified string.
- Cleaning up a config or fixture file to a consistent indent before committing.
- Pinpointing a syntax error (missing comma or bracket) by line and column.
