Paste JSON from an API, a config file or a log. Make it readable, make it small, or find the exact spot where it is broken.
JSON is the text format most apps and websites use to send data. It is easy for computers but hard to read when it is all on one line. This tool adds line breaks and indents (beautify), removes them again (minify), sorts the keys, and checks that the JSON is valid. If it is broken, it tells you the line and column and gives a tip about the most common mistakes.
A green β Valid JSON means the data can be read by any program. A red message gives the error from your browser plus the position. The byte numbers show how much smaller minified JSON is β useful when you send data over slow mobile internet.
Privacy: everything runs inside your browser. Your text is not sent to our server and is not saved.
No. Everything happens in your browser with the built-in JSON.parse. Your data never leaves your device.
A comma after the last item, single quotes instead of double quotes, keys without quotes, and a missing } or ]. The tool shows tips for these.
Minify removes all spaces and line breaks that are not needed. The data stays the same, the file just gets smaller.
No. Standard JSON does not allow comments. Many people add a field like "_note" instead.
JavaScript can store whole numbers exactly only up to 9,007,199,254,740,991. Bigger IDs should be stored as text in quotes.