About the JSON to CSV
JSON to CSV flattens a list of JSON objects into a comma-separated table you can open in Excel, Google Sheets, or any data tool. The keys of the first object become the header row, and each object becomes one line.
How it works
The input is parsed as JSON. A single object becomes one row, and if it wraps an array of records (like {"data": [...]} from an API) that array is used. The columns are every key found across all objects, in the order they first appear. Nested objects are flattened into columns such as address.city, and arrays are written as JSON text.
Values that contain the delimiter, a double quote or a line break are wrapped in double quotes with inner quotes doubled, following RFC 4180. Rows end with CRLF line breaks, and the Excel-friendly option adds a UTF-8 byte order mark so accented characters open correctly in Excel.
How to use
- 1
Paste a JSON array of objects, or open a .json file.
- 2
Choose the delimiter and whether to flatten nested objects.
- 3
Check the table preview and the row and column count.
- 4
Copy the CSV or download data.csv.
Worked examples
Mixed records
Two users with slightly different fields.
Columns come from the first object only, so Bob's email is dropped and his missing city is an empty cell.
Single object
An object with an array and a null.
Frequently asked questions
What happens if my JSON objects have different fields?+
Every key from every object becomes a column. Objects missing a field get an empty cell.
Can it handle nested JSON objects?+
Yes. Nested objects are flattened into dot-notation columns such as address.city, or kept as JSON text if you turn flattening off.
How are commas and quotes inside values handled?+
The value is wrapped in double quotes and inner double quotes are doubled, so spreadsheets read it as one cell.
Can I choose a semicolon or tab delimiter?+
Yes. Choose comma, semicolon, tab or pipe.