JSON to CSV Converter
Convert a JSON array of objects to CSV — all keys become headers, values properly escaped.
How to use this tool
- 1Paste a JSON array of objects into the left panel (e.g. [{"name":"Alice","age":30}]).
- 2Click Convert — the CSV appears in the right panel.
- 3Click Download CSV to save as a .csv file, or copy from the output panel.
About JSON to CSV Converter
Exporting data from an API or database often returns JSON, but spreadsheet tools like Excel and Google Sheets expect CSV. This converter takes a JSON array of objects, collects all unique keys across all objects (using a Set to handle sparse objects where some rows have extra fields), uses those keys as the CSV header row, and maps each object's values to the corresponding columns. Values containing commas, double quotes, or newlines are wrapped in double quotes and internal quotes are escaped as double-double-quotes — the RFC 4180 CSV standard. A single object (not in an array) is also accepted and treated as a one-row CSV. Click Convert to generate the CSV, then Download CSV to save it as a .csv file or copy from the output panel. Runs entirely in your browser using JSON.parse() for validation.