JSON → CSV

Convert JSON arrays and objects to CSV format. Download as .csv file or copy to clipboard instantly.

Input149 chars
Output
0 chars

Examples

JSON Array Input
[
  { "id": 1, "name": "Alice", "role": "Admin" },
  { "id": 2, "name": "Bob", "role": "Editor" }
]
CSV Output
"id","name","role"
"1","Alice","Admin"
"2","Bob","Editor"

Frequently Asked Questions

How does JSON to CSV conversion work?

The converter expects a JSON array of objects (flat structure). It extract keys of the first item to construct the CSV header row, then maps the values of each object to construct succeeding rows. Nested structures are stringified.

What happens to nested JSON fields?

Nested JSON objects or arrays inside field values are stringified to JSON strings and escaped inside double-quotes to ensure the resulting CSV is syntactically valid.

Can I download the output?

Yes. Once converted, click the 'Download .csv' button to save the output locally as a CSV spreadsheet file.

Related Tools