How many spaces can I indent with?
In pretty mode you can choose 2 or 4 spaces. Two spaces is the default for GitHub and most config files; four spaces makes the nesting easier to see. The result re-renders the moment you press a button.
Does sorting keys change the values?
No. Key sorting only reorders object keys in ascending Unicode code point order. Array order and every value stay the same, so parsing the output gives identical data. It is handy for diffing two JSON documents.
Why do comments or trailing commas cause an error?
Comments, a comma after the last element and single quotes are JSON5, not standard JSON. This tool uses the standard JSON.parse, so it does not accept them. Use the reported position to fix that part into standard JSON.
Is my JSON sent to a server?
No. Everything runs in your browser. You can paste API responses or config files with sensitive data and nothing is sent or stored on a server.