JSON formatter and validator

Format, minify and check JSON, with the exact line and column of any mistake.

Runs in this browser. Nothing you give it is uploaded.

Loading the tool...
02About this tool

How to use it.

  1. Paste your JSON, or open a .json file.
  2. Read the formatted or minified result. If it is not valid, the tool shows the line and column and what is wrong.
  3. Copy or download it, or convert it to CSV or YAML.

Questions

Does it change my numbers?

No. Numbers and text are printed exactly as you wrote them, so a long ID like 12345678901234567890 is not rounded the way many tools round it.

What does "Fix it" do?

When the only problems are comments or trailing commas, which JSON does not allow, it offers to remove them. It never guesses at anything else.

Need this built into your business?

These tools are small examples of how we work: software that does one job well, where your data already is. If a job like this happens in your company every day, tell us about it.

Talk to us