What is the JSON Formatter & Minifier?
Paste messy JSON and get neat, indented JSON that is easy to read. If the JSON has a mistake, like a missing comma or a single quote, the tool tells you the line and column in plain words.
You can also minify JSON to make it as small as possible, sort the keys A to Z, and allow comments or trailing commas from code files. All of it runs inside your browser.
How to use it
- Paste your JSON in the left box.
- Pick Beautify or Minify.
- Fix any mistake the tool points out, then copy the result.
Why people like this tool
Clear errors
Line, column and a plain reason.
Beautify or minify
Readable or as small as can be.
Sort keys
Order the keys A to Z.
Lenient mode
Accepts comments and trailing commas.