Output will appear here...
Paste minified or messy JSON and turn it into readable, indented output, or squeeze it back into a single line. The formatter also validates your JSON and points out syntax errors such as a missing comma or an unquoted key. It runs entirely in your browser, so API responses, tokens and config files stay private.
{"a": 1,} is invalid. Remove the comma after the last item."name" rather than 'name'.{name: 1} is valid JavaScript but not valid JSON.// or /* */ comments.undefined, NaN and functions are not allowed. Use null instead.Format (also called beautify or pretty-print) adds line breaks and indentation so people can read nested objects and arrays. Minify removes all unnecessary whitespace, making the file smaller for sending over a network or storing in a config value. The data is identical either way.
Paste it into the formatter. Valid JSON is formatted straight away; invalid JSON shows an error describing what went wrong.
The formatter runs locally in your browser and does not send your JSON anywhere. As a habit, still avoid pasting live secrets into any website.
Minifying removes spaces, tabs and line breaks that are not needed, so the same data takes up less space.
Yes, within the limits of your browser's memory. Files of several megabytes usually format in under a second.
The JSON specification is deliberately strict so every parser reads the same data the same way. A comma after the last item is not part of that grammar.