JSON to CSV

Convert JSON arrays into CSV with dynamic columns.

JSON to CSV turns an array of JSON objects into comma-separated text with a header row. Columns are built from every key found across all objects, so records with different fields still line up. Use it to hand API data to a spreadsheet or to produce import files.

How does JSON map to CSV?

JSON is hierarchical while CSV is a flat grid, so a conversion needs rules. The common approach is to treat each object in an array as a row and each key as a column. Records do not need identical keys; the column set is the union of all keys. Nested objects and arrays cannot be flattened into one cell naturally, so they are usually written as JSON text inside the cell. Fields containing commas, quotes or line breaks are enclosed in double quotes, with inner quotes doubled, following RFC 4180.

How to use JSON to CSV

  1. Provide JSON Paste an array of objects into the JSON box or load a .json file.
  2. Convert Convert to CSV runs automatically as you type.
  3. Review the table text Check the header row and cells in the CSV output pane.
  4. Export Use Copy or Download to save data.csv.

Frequently asked questions

What happens to nested objects?

They are not flattened into separate columns. The nested value is serialized as JSON text and placed in a single cell, with quotes escaped by doubling.

Can I convert a single object?

Yes. A lone object is treated as an array with one element and produces a header row plus one data row.

What if my array is empty?

An empty array produces empty output.

Is the delimiter configurable?

This tool always uses a comma. Use JSON to TSV if you need tab-separated output.

How are booleans and numbers written?

They are written as plain text, for example true or 36, and null becomes an empty cell.