How it works
Build a CSV table from a flat JSON object array. The converter uses the union of keys found in every row, so fields that appear after the first row are retained. Missing values become empty cells.
Paste [{"name":"London"},{"name":"Paris","code":"02"}] to create name and code columns. The London row has an empty code cell.
Input and output example
Input text
[{"name":"London","code":"001"},{"name":"Paris","code":"002"}]Tips
Cells that could be interpreted as spreadsheet formulas, including values starting with =, +, -, or @, are escaped with a leading apostrophe. Review untrusted spreadsheet data before opening it.
Limits
Nested objects and arrays, empty arrays, and nonobject rows are rejected. Spreadsheet applications may infer numeric types again when importing a CSV, so import identifier columns as text. Keys that are whole numbers, such as 2024, are moved ahead of the other keys in each object, which changes the column order.
Common questions
Why does "-5" get an apostrophe but -5 does not?
Formula escaping applies only to text. The string "-5" is written as '-5 so that a spreadsheet does not evaluate it, while the number -5 stays -5. Store numbers as JSON numbers when you want them unchanged.
How are commas, quotes, and line breaks inside values written?
Values that contain a comma, a double quote, or a line break are wrapped in double quotes, and inner quotes are doubled: He said "hi" becomes "He said ""hi""". Rows end with CRLF line breaks, as RFC 4180 describes.
Can I tell null from a missing key in the CSV?
No. null, an empty string, and a missing key all become an empty cell, while false and 0 are written as false and 0. Keep the JSON if you need to know which values were null.
Why do accented letters look wrong in Excel?
The CSV is saved as UTF-8 without a byte order mark. If you double-click it, Excel on Windows may read it in the system's older encoding, and é shows up as é. Open it through Data > From Text/CSV and set File origin to 65001: Unicode (UTF-8).