DevTool Desk

JSON Formatter/Validator

Input
Output

Paste any JSON to instantly validate, beautify, or minify it. Invalid JSON is flagged with the exact line and column of the problem, so you don't have to hunt for a missing comma or bracket by hand. Switch to the tree view to explore deeply nested objects and arrays, or turn on 'Sort keys' to get a deterministic, diff-friendly ordering. Everything happens locally in your browser.

Frequently asked questions

Why does my JSON show as invalid even though it looks correct?

Common causes are trailing commas, single quotes instead of double quotes, unquoted keys, or comments — none of which are valid in standard JSON. The error message shows the exact line and column where parsing failed.

What does 'Sort keys' do?

It recursively reorders every object's keys alphabetically before formatting. This is useful for producing consistent, diffable output when comparing JSON from different sources.

Does minifying lose any data?

No — minify only removes whitespace and line breaks between tokens. The resulting JSON is functionally identical to the beautified version, just smaller.

Is my JSON data sent to a server?

No. Parsing and formatting happen entirely in your browser using JavaScript's built-in JSON parser — nothing is uploaded.