Skip to content
Toolbento

Format JSON

Pretty-print, minify and validate JSON, with optional key sorting.

Output style

How to use Format JSON

  1. Paste or type JSON in the input pane.
  2. Choose 2 spaces, 4 spaces or minify, and turn on key sorting if you need it.
  3. Copy the result or download it as a file.

Questions and answers

Is my data sent anywhere?

No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.

What happens with invalid JSON?

You get a plain message that says what is wrong and where, such as the line and column of an unexpected character.

Does sorting keys change my data?

It only changes the order of keys inside objects. Values and the order of items in arrays stay the same.

Esc
Merge PDFPDFSplit PDFPDFExtract PDF pagesPDFDelete PDF pagesPDFRotate PDF pagesPDFReorder PDF pagesPDFImages to PDFPDFFormat JSONDeveloperBase64 encode and decodeDeveloperURL encode and decodeDeveloperJWT decoderDeveloperHash generatorDeveloperUUID generatorDeveloperTimestamp converterDeveloperRegex testerDeveloperDiff checkerDeveloperYAML to JSON converterDeveloper