Getting JSON Into a Spreadsheet
By toolbelt maintainers ·
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?
Why are some rows missing columns?
Excel shows everything in one column
Can I convert back?
Related tools
- CSV to JSONConvert CSV data to a JSON array of objects. Automatically maps the first row to object keys, perfect for importing spreadsheet data into web applications or APIs.
- XML to JSONConvert XML documents to JSON objects. Bridge the gap between legacy SOAP APIs and modern frontend applications while preserving attributes and hierarchical data.
- JSON to XMLConvert JSON objects to valid XML markup. Automatically handle arrays, attributes, and special characters, making it easy to integrate with older enterprise systems.
- YAML to JSONConvert YAML configuration into JSON, or JSON back into clean YAML. Parse errors report the line and column so you can fix the file quickly.