JSON Formatter & Validator

๐Ÿ”’ Your JSON stays in your browser โ€” it is never sent to a server
Input

An online JSON parser that tells you exactly what is wrong

Paste JSON or drop a file to validate, format, minify and explore it as a tree. Errors come with the line, column and a plain-language explanation, and common mistakes can be fixed in one click.

FAQ

Is my JSON sent to a server?

No. Parsing, formatting and fixing all happen locally in your browser. Your data never leaves your device.

Why do I get "Trailing commas are not allowed"?

Standard JSON does not allow a comma after the last item of an object or array, e.g. {"a": 1,}. Remove the last comma or press the Auto-fix button.

Why do big numbers change in other JSON tools?

JavaScript stores numbers as 64-bit floats, so integers above 9007199254740991 get rounded. This parser keeps the original digits, so IDs and big integers stay exactly as written.

Can JSON contain comments?

No. Comments (// or /* */) are not part of the JSON standard. This tool points them out and can remove them automatically.

Common JSON errors and how to fix them