Format, validate, and minify JSON instantly. Runs entirely in your browser — your data never leaves your device.
JSON is the format most APIs, configuration files and web apps use to exchange data. Machines often send it minified, on one long line with no spaces, which is efficient to transfer and very hard to read. A formatter adds indentation and line breaks so you can see the structure, and the validator tells you where the syntax breaks. Everything here runs in your browser, so the data you paste is never uploaded.
{"a": 1,} is valid JavaScript but invalid JSON.{name: "x"} works in a JavaScript object, not in JSON.// and /* */ lines before parsing.NaN, Infinity and undefined are not allowed. Use null or a string instead.API responses often contain access tokens, email addresses or customer records. Avoid pasting them into tools that send data to a server; a browser-only formatter like this one keeps them on your computer. If you need the data in a spreadsheet, the JSON to CSV converter turns arrays of objects into rows.