IT

Format and check JSON.

Paste JSON. See it indented, minified or as a tree, and find any error by line and column.

Runs in your browser · nothing is uploaded

Loading…

Next step: CSV to JSON →

How it works

Three steps.

  1. Paste JSON or drop a .json file.

  2. Choose Format, Minify or Tree, and the indent.

  3. Fix any error at the line shown, then copy or download.

Related tools

Why is my JSON not valid?

JSON is stricter than JavaScript. The mistakes we see most often are a trailing comma after the last item, single quotes instead of double quotes, keys without quotes, comments, and a raw line break inside a string. The checker points to the exact line and column, draws a caret under the character, and explains the fix in plain words.

Format, minify or tree?

  • Format adds line breaks and indentation (2 spaces, 4 spaces or tabs) so you can read and diff it.
  • Minify removes all spaces to make the file as small as possible for an API or a config value.
  • Tree lets you fold objects and lists to explore a large response.

Sorting keys alphabetically makes two versions of the same data easier to compare.

Large files

Files over about 2 MB are parsed in a background worker, so the page stays responsive. Everything happens in your browser: API responses with tokens or customer data never leave your device.

FAQ

Questions.

Is my JSON sent to a server?

No. Parsing, formatting and validation run in your browser. You can even use the page offline once it has loaded.

Can it fix my JSON automatically?

No, on purpose. Guessing a fix can silently change your data. It shows exactly where the problem is and what to change.

Why do big numbers change?

JavaScript stores numbers as 64-bit floats, so integers above 9,007,199,254,740,991 lose precision when formatted. Keep IDs that long as strings.