Skip to content
FR – lire en français

JSON Formatter

Tidy, check or minify JSON as you paste it.

Loading the tool on your device…

JSON Formatter checks your JSON and lays it out with the indentation you choose, or squeezes it onto one line. Errors point to the line and column.

Updated 6 December 2026 · runs in your browser

How to use it

  1. Paste JSON, open a .json file, or start from the example.
  2. Choose how to lay it out: 2 spaces, 4 spaces, tabs, or minified.
  3. Copy the result or download it as a file.

Details

JSON Formatter details
InputJSON text or a .json file
OutputFormatted or minified JSON
SizeComfortable up to about 20 MB
ChecksSyntax, with line and column of the first error

Questions

Do my files leave my computer?
No. This tool runs inside your browser tab. The page makes no network request with your data, and you can check that yourself in your browser's developer tools.
Does it sort keys?
No. Keys keep their original order so the output matches your data.
  • CSV to JSON

    Convert CSV to JSON and back, quotes and all.

  • JWT Decoder

    Read a JSON Web Token's header, claims and expiry.

  • Regex Tester

    Try a regular expression and see every match live.