What this tool does
Converts a JSON array of objects to CSV. Object keys become column headers. Nested objects are flattened with dot notation.
Data and text tool
Convert JSON arrays to CSV format for use in Excel, Google Sheets, or data analysis tools. Handles nested objects and arrays.
Complete guide
Developer tools guide for json to csv converter users.
JSON is the output format of most APIs. CSV is what spreadsheets and data tools expect. Converting between them is a daily task for data analysts, backend developers, and anyone exporting API data to a spreadsheet.
This tool flattens JSON arrays of objects into CSV rows, using the object keys as column headers. Nested objects are dot-notated (e.g. address.city). Arrays within objects are serialised as strings.
Converts a JSON array of objects to CSV. Object keys become column headers. Nested objects are flattened with dot notation.
Paste a JSON array. Click Convert. Download the CSV or copy it. The first row contains the keys as headers.
Nested objects: flattened to 'parent.child'. Arrays in values: serialised as a quoted string. Missing keys: output as empty cells.
Answers
An array of objects: [{}, {}, ...]. Each object becomes a row; the keys of the first object determine the columns.
They are flattened using dot notation. {address: {city: 'London'}} becomes a column named 'address.city'.
They are serialised as a quoted JSON string in the CSV cell.
Wrap it in an array: [{...}]. The tool requires an array of objects.