Tools · Text · JSON formatter and validator

JSON formatter and validator

Validate JSON as you type, pretty-print it or minify it, and see the exact line and column of any syntax error.

Your result appears here

Add a file and run the tool.

Settings

Adjust the settings below. The result updates as you go.

Drop a file here, or choose one.

Runs fully in your browser. Nothing is uploaded.

Runs fully in your browser. Nothing is uploaded.

How it works

  1. Paste your JSON.

  2. It's validated and formatted instantly - switch to Minify if you want it compact instead.

  3. Copy the result, or fix the error at the exact line and column shown.

Frequently asked questions

No. Everything happens in your browser - not even to check if it's valid.

Yes - the exact line and column, not just "invalid JSON".

Yes. Switch to Minify mode and the same JSON comes back with no extra whitespace.

No. This tool validates strict JSON (RFC 8259) only. Comments, trailing commas and unquoted keys are reported as syntax errors, not silently accepted.

They are kept exactly as you wrote them. A repeated key reads without an error, but programs disagree on which value wins (JavaScript keeps the last one), so the formatter does not choose for you and your data is never edited without you knowing.

Comments

  1. No comments yet. Be the first to share your experience.
Your rating (optional)

No rating selected