JSON to CSV

Convert JSON data to CSV format quickly and easily.

About JSON to CSV

APIs and NoSQL exports hand you JSON, but Excel, Google Sheets and most reporting tools want a flat CSV table. This converter takes a JSON array of objects, uses the keys of the first object as column headers and writes one CSV row per object, ready to open in a spreadsheet.

Paste the JSON into the box, type the output file name and click the button: the .csv file downloads straight away. Parsing is done by the browser's own JSON engine, so nothing is sent to a server and even large API responses stay on your machine.

How to use JSON to CSV step by step

  1. Type the name of the output file (the .csv extension is added automatically).
  2. Paste your JSON into the text area. It should be an array of objects; a single object is accepted and becomes one row.
  3. Click "Convert and download CSV". If the JSON is not valid you get an error message instead of a file.

Input and output example

Input

[
  {"id": 1, "name": "Ana", "active": true},
  {"id": 2, "name": "Luis", "active": false}
]

Output

id,name,active
1,"Ana",true
2,"Luis",false

Why use our JSON to CSV?

Common use cases

Limits and tips

Frequently asked questions

What is the difference between JSON and CSV?

JSON is a hierarchical text format with objects, arrays and typed values (string, number, boolean, null) used by APIs and configuration files. CSV is a flat table: one line per record, values separated by commas, no types and no nesting. Converting JSON to CSV means picking the keys as columns and writing each object as a row.

My JSON is an object, not an array. Does it work?

Yes. A single object is wrapped into an array and produces a header row plus one data row. An object whose values are themselves objects (for example a map keyed by id) will produce one row with the nested objects serialised as text.

Why does Excel show all my data in one column?

Excel in Spanish, French or German regional settings expects a semicolon as separator, but this file uses commas. Open the CSV with Data > From Text/CSV and choose comma, or run the result through the CSV to Delimited tool to switch to semicolons.

Does it handle JSON with nested arrays?

Only partially. Nested arrays and objects are kept as JSON text inside a single cell. If you need each nested field as its own column, flatten the structure first, for example with a small script or a JSON flattening library.

Is there a size limit?

The limit is your browser's memory. Files of several tens of megabytes convert in a few seconds on a modern laptop; for hundreds of megabytes a command-line tool such as jq or Miller is a better fit.

Related guides

Related tools

Other free utilities you may find useful

Available languages