Convert JSON arrays into CSV with dynamic columns.
JSON to CSV turns an array of JSON objects into comma-separated text with a header row. Columns are built from every key found across all objects, so records with different fields still line up. Use it to hand API data to a spreadsheet or to produce import files.
JSON is hierarchical while CSV is a flat grid, so a conversion needs rules. The common approach is to treat each object in an array as a row and each key as a column. Records do not need identical keys; the column set is the union of all keys. Nested objects and arrays cannot be flattened into one cell naturally, so they are usually written as JSON text inside the cell. Fields containing commas, quotes or line breaks are enclosed in double quotes, with inner quotes doubled, following RFC 4180.
They are not flattened into separate columns. The nested value is serialized as JSON text and placed in a single cell, with quotes escaped by doubling.
Yes. A lone object is treated as an array with one element and produces a header row plus one data row.
An empty array produces empty output.
This tool always uses a comma. Use JSON to TSV if you need tab-separated output.
They are written as plain text, for example true or 36, and null becomes an empty cell.