🌐 English

Home › Data & text

JSON Formatter and Validator

Expand one-line JSON into something readable and spot syntax errors right away.

🔒 What you enter never goes to a server — every calculation happens on your device (in your browser).

How to use

  1. Paste your JSON.
  2. Choose the indent (2, 4 or tab) and press “Format” or “Minify”.
  3. Copy or download the result. If there's an error, its line and column are shown.

Common JSON errors

JSON is stricter than it looks: keys must be in double quotes, there can be no comma after the last item, and single quotes, comments and undefined aren't allowed. When an error position is shown, look just before it first.

When to sort keys

Sorting keys alphabetically makes it easier to compare two JSON documents or keep config files tidy. Array order isn't changed.

FAQ

Does large JSON work?

A few megabytes are handled instantly. Very large files may be slow depending on your device's memory.

What about JSON with comments?

Standard JSON has no comments, so it reports an error. Remove them or handle the file as YAML.

My numbers changed

Very large integers (more than about 16 digits) can be rounded by JavaScript's number limits.

Is my input uploaded?

No. It's processed only in your browser.