JSON to CSV

Convert a JSON array of objects into a CSV file online for free.

How to use

  1. 1Paste a JSON array of objects.
  2. 2Click Convert to CSV.
  3. 3Copy or download the CSV file.

Features

  • Handles objects with different fields
  • Properly escapes commas and quotes
  • Copy or download the result

Supported formats

Input: JSONOutput: CSV

Privacy

Your data is converted locally in your browser and is never sent to our server.

About this tool

JSON to CSV converts an array of JSON objects into a CSV table, using the union of every object's keys across the whole array as the column headers — so if some objects are missing a field that others have, that cell is just left blank rather than breaking the conversion. This is the usual step for turning an API response or a JSON export into something a spreadsheet can open directly. For the reverse conversion, see CSV to JSON.

Frequently asked questions

What JSON structure is supported?

The input must be a JSON array of flat objects, for example [{ "name": "Ana", "city": "Lisbon" }].

What happens if objects have different fields?

All unique field names across every object become CSV columns; missing values are left blank.

Is my data uploaded to a server?

No, conversion happens entirely in your browser.

What happens to nested objects or arrays inside a field?

CSV has no concept of nesting — every cell is a flat value. Nested objects or arrays are converted to their JSON string representation inside that cell rather than being flattened automatically, since there's no single correct way to flatten arbitrary nested data into columns.