MISTOOLS

JSON Formatter & Validator

Paste JSON to check it, make it easy to read, or squeeze it small. Errors show the exact line and column.

How it works

  1. Paste your JSON.
  2. Press Format or Minify. Choose indent and key sorting if you like.
  3. Copy the result or download a .json file.

About this tool

JSON is the most common way apps send data. A single missing comma or quote breaks it. This tool tells you if your JSON is valid and, if not, points to where the problem is.

Try to fix repairs the usual mistakes from copied code: comments, trailing commas, single quotes and keys without quotes. You also get the number of keys, how deep it goes and its size. Your data stays on your device.

Questions

Why is my JSON invalid?

Common causes are a trailing comma, single quotes instead of double quotes, or a missing bracket. The error message shows the line and column.

What does Sort keys do?

It puts every object key in A to Z order, which makes two JSON files easier to compare.

Is there a size limit?

No fixed limit, but very large files depend on your device memory.

Is my JSON sent anywhere?

No. It is checked in your browser only.

More tools

More free Developer tools