Toolkitties
๐Ÿ“ˆ Writing

How to Turn JSON Data Into a CSV You Can Open in Excel

API responses and exported JSON data, turned into a spreadsheet you can actually open and sort.

Key takeaways

  • JSON to CSV flattens an array of JSON objects into spreadsheet rows, using each object's keys as column headers.
  • Useful for taking an API response or exported JSON data and actually working with it in Excel or Google Sheets.
  • Works best on a flat or fairly simple JSON structure โ€” deeply nested objects need some thought about how they should become columns.
  • Everything converts in your browser; no upload to a conversion server.

Converting JSON to a spreadsheet

Open JSON to CSV, paste in a JSON array of objects, and download the resulting CSV โ€” open it directly in Excel or Google Sheets.

If your JSON is deeply nested

A simple array of flat objects (each with the same keys) converts cleanly into rows and columns. If your JSON has nested objects or arrays inside each record, consider flattening the structure first (or deciding which nested fields you actually need), since a spreadsheet row can't naturally represent arbitrary nesting the way JSON can.

Frequently asked questions

What if different objects have different keys?

The resulting CSV includes all the keys seen across the objects as columns, leaving a cell blank for objects that didn't have that key.

Can I go from CSV to JSON instead?

Yes, use [CSV to JSON](/csv-to-json) for that direction.

Keep reading