How it works
The converter expects either a single object or an array of objects. It collects every key (in the order they first appear), uses those as the header row, and writes one row per object. Nested objects and arrays are stored as JSON-encoded strings — CSV is flat by design, so true nested CSV doesn't exist.
Picking a wire format for your service? See JSON vs YAML vs XML: when to use which for the practical tradeoffs.
String values that contain commas, quotes, or newlines are wrapped in double quotes and internal quotes are doubled, per RFC 4180.
Convert JSON to a spreadsheet or Excel file
CSV is the universal handshake between web APIs and spreadsheets. Once you've converted JSON to CSV, you can open the file in Excel, Google Sheets, Numbers, or any data tool that imports tabular data. If your JSON is deeply nested, see the longer walkthrough on converting JSON to CSV without losing nested data — there are four strategies and only one is right for any given dataset.