JSON Formatter & Validator

Pretty-print, minify, validate and sort keys. Invalid JSON gets the exact line, column and offending snippet instead of a vague parser message — and your input pane is never overwritten.

Error line & column Sort keys Nothing leaves your device

      

Frequently asked questions

The usual culprits are a trailing comma after the last item, single quotes instead of double quotes, unquoted property names, and JavaScript comments — none of which are legal JSON. The error box above names the line and column so you can go straight to it.
No. Parsing uses the browser's own JSON engine on this page, so you can safely paste API responses containing tokens or customer data.
It reorders object properties alphabetically at every level, recursively. JSON objects are unordered by specification, so this changes nothing semantically — but it makes two responses diffable, which is invaluable when comparing API payloads. Array order is always preserved, because arrays are ordered.
Files up to a few megabytes are comfortable. Above that, syntax highlighting is skipped automatically to keep the tab responsive — you still get valid formatted output.