Turn a JSON array into CSV rows
Use a nonempty array of flat objects. For example, [{"name":"Alice","age":30},{"name":"Bob","age":25}] becomes a CSV header name,age followed by Alice,30 and Bob,25 on separate lines.
The first object's keys define the columns and their order. A field that appears only in a later object is omitted. Missing and null values produce empty cells. Use the same simple column names in each row, and flatten nested data before conversion.
Review quoting and type changes
Data cells containing commas, double quotes, or line breaks are quoted, and a double quote inside a quoted value is doubled. CSV has no built-in distinction between a number and numeric text. Nested objects and arrays are converted to strings rather than expanded into extra columns.
The CSV to JSON converter reads values as strings and expects one record per line, so a round trip can change types and cannot restore nested structure. Use the JSON flattener to inspect nested fields first, or the JSON formatter to check the source.
Common questions
- Which JSON keys become CSV columns?
- Only the keys of the first object define the columns. Add every desired key to that first object before converting.
- Will nested JSON objects become separate columns?
- No. This converter stringifies nested values. Flatten the data into simple fields before converting it to CSV.