Skip to content
toolbelt
Back to Guides

Getting JSON Into a Spreadsheet

By ·

Updated

Your API returns nested objects and someone wants it in Excel by Friday. Here is what survives the trip and what does not.

What is this tool?

JSON to CSV flattens an array of objects into rows and columns. It is a lossy operation, and knowing what is lost saves confusion later.

How it works

I collect every key across every row to form the header, so rows with different shapes still align. Nested objects are serialised into their cell. Then each row is written with proper quoting so commas inside values do not split columns.

Example

[{"id":1,"name":"Ada","tags":["a","b"]},
 {"id":2,"name":"Grace"}]

becomes
id,name,tags
1,Ada,"[""a"",""b""]"
2,Grace,

When to use it

Sending data to someone who lives in Excel. Making a quick pivot table. Reviewing API output column by column rather than scrolling JSON.

Optimization Tips

Flatten nested objects before converting if you need to sort or filter in the spreadsheet. A cell containing JSON is not very useful as a column.

Frequently Asked Questions

Why is my nested object in one cell?
CSV has no nesting. The object is serialised as text so nothing is lost.
Why are some rows missing columns?
The header is the union of all keys. Missing values become empty cells, which is correct.
Excel shows everything in one column
That is usually a locale setting expecting semicolons. Check the delimiter Excel expects on your machine.
Can I convert back?
Yes, using the CSV to JSON tool, though nesting does not round-trip unless you parse the JSON inside each cell.

Ready to try it out?

Put this knowledge into practice with our free tool.

Go to Tool

Related tools