JSON Formatter & Validator
Pretty-print, minify and validate JSON with clear error messages.
Spreadsheets want rows and columns; APIs return JSON. This tool flattens an array of objects into a CSV table with a header row, quoting values that contain commas or quotes.
Paste JSON, copy the CSV or download it as a file. Nested objects are written as compact JSON in their cell, which keeps the data intact.
Runs locally in your browser — nothing is uploaded.
An array of objects, for example [{"name":"Ann","age":30},{"name":"Bo","age":25}]. The union of all keys becomes the columns.
Values containing commas, quotes or newlines are wrapped in double quotes, and inner quotes are doubled, per RFC 4180.
They are serialised as compact JSON text inside the cell rather than flattened into separate columns.
CSV looks simple and is full of edge cases: commas inside values, quotes, newlines and numbers that spreadsheets silently reinterpret. Treating a postcode as a number removes its leading zero, so the converter keeps values as text.
Nested structures do not flatten cleanly into columns. Writing them as compact JSON in a cell preserves the data; flattening to dotted column names is a design decision that depends on how the file will be consumed.