JSON to CSV

Flatten an array of objects into a downloadable CSV table.

ABOUT THIS TOOL

What this tool does

JSON is great for programs; spreadsheets prefer rows and columns. This tool flattens a JSON array into CSV so you can open the data in Excel, Sheets or a database.

USE CASES

When to use it

  • You have API data in JSON and need a spreadsheet.
  • You want to import records into a tool that accepts only CSV.
  • You are preparing a simple data table from a nested response.
  • You need to share data with someone who does not work with JSON.
UNDERSTAND IT

How to understand this tool

INPUT
JSON array[{"name":"Alice","age":30,"city":"Paris"},{"name":"Bob","age":25,"city":"Tokyo"}]
OUTPUT
name,age,city
Alice,30,Paris
Bob,25,Tokyo

CSV needs flat rows, so the keys of the first object become the column headers and later objects are matched by key name. A nested object cannot become a column of its own; it is written into a single cell as JSON text, which is why the cell looks like {"c":2} in a spreadsheet. Missing keys simply leave the cell empty.

What it will not do

  • It expects an array of objects, not a single object or a nested array.
  • It does not let you choose which columns to keep or reorder them.
FAQ

Questions people ask

What happens to nested objects?

They are usually converted to a text value rather than spread across columns.

Why are some columns empty?

If objects have different keys, some rows will not have a value for every column.

GOOD TO KNOW

One thing worth knowing

Nested objects are exported as JSON strings. Flatten them first if you need separate columns.