Paste JSON to validate it and print it neatly, or compress it to a single line.
The input is parsed with the same strict parser used by browsers and JavaScript runtimes, so a pass here means other tools will accept the JSON too. Beautify mode indents with two spaces, four spaces or tabs. Minify mode removes every optional space and line break.
When the JSON is invalid, the tool reports the problem with its line and column, such as an unexpected token or a missing comma. Sorting keys alphabetically at every level makes it easy to compare two documents or keep files diff friendly.
Common causes are trailing commas, single quotes around strings, unquoted keys and comments. JSON is stricter than JavaScript object syntax.
No. JSON objects are unordered. Array order is never changed.
Files of several megabytes work fine on a modern computer, since everything is processed locally.