JSON Formatter & Validator

Paste in JSON to pretty-print or minify it. If there's a syntax error, we'll tell you exactly where it is.

What does this tool do?

How does it locate errors?

When the JSON syntax is invalid, we take the error position (a character index) reported by your browser's built-in JSON parser and convert it into an actual line and column number. This helps you quickly spot common mistakes like a missing comma, a missing quote, or mismatched brackets.

Frequently Asked Questions

Is the JSON I enter sent to a server?

No. Everything is processed entirely in your browser and is never sent to a server.

Does it support JavaScript object literals (unquoted keys)?

No. Only standard JSON syntax is supported. Keys must always be wrapped in double quotes.