PixConvert

Free Online JSON to CSV Converter

Convert JSON arrays and records into clean CSV files for Excel and Google Sheets. Automatic column flattening with zero server uploads.

JSON input

CSV output

How to Convert JSON to CSV

1

Paste your JSON array.

It must start with [ and hold objects, one per row. If your data sits inside an object, copy just the array part.

2

Set the options.

Choose a delimiter, keep or drop the header row, and turn on Flatten nested objects if you want dot-notation columns instead of JSON text in cells.

3

Convert and save.

Click Convert to CSV, check the preview, then download data.csv or copy it. Click Convert again after you change an option.

Frequently Asked Questions

Answers about input shape, nested data, delimiters and opening the CSV in a spreadsheet.

How do I convert JSON to CSV?

Paste a JSON array into the left editor, pick a delimiter and click Convert to CSV. Each object becomes a row and each key a column. Check the preview on the right, then click Download .csv or Copy CSV.

What JSON structure does the converter accept?

The top level must be an array, usually of objects like [{"name":"Ana","age":30}]. Each object becomes one row. Plain values such as numbers go into a single column called value. A single object, or an array wrapped in an object, is rejected. Nested arrays as rows give columns named 0, 1 and so on.

How are nested objects and arrays handled?

With Flatten nested objects on, each nested field becomes its own column, such as address.city, at any depth. With it off, the whole nested object is written as JSON text in one cell. Arrays always stay as JSON text in one cell and are never split into rows.

What if my objects have different keys?

The converter collects every key from every object, in the order it first sees them, and makes one column for each. When a row doesn't have a key, that cell is left empty, so records with mixed fields still line up.

Which delimiter should I choose?

Use comma for most apps. Pick semicolon if your Excel uses a comma for decimals, as in much of Europe. Tab is handy for pasting into a sheet, and pipe suits text full of commas. Cells holding the delimiter get quotes either way.

How do I open the CSV in Excel or Google Sheets?

Download data.csv. In Google Sheets, use File, then Import. In Excel, use Data, then From Text/CSV, and pick UTF-8 if accents look wrong, since the file has no byte-order mark. Choose the same delimiter you converted with.

Can I convert CSV back to JSON?

Not with this tool. It only converts JSON to CSV, and there is no reverse mode. If you need another text format for the same data, the JSON to YAML converter works in both directions between JSON and YAML.

Why does it say the input must be a JSON array?

Your JSON starts with { instead of [. Many APIs wrap their list, as in {"data":[...]}. Copy only the part from [ to ], or put a single object inside square brackets so it becomes a one-row array, then click Convert again.

Why are large ID numbers wrong in my CSV?

JSON numbers are read as JavaScript numbers, which hold about 15 to 17 digits. A 20-digit ID such as 12345678901234567890 comes out as 12345678901234567000. Ask the source to send IDs as strings in quotes; strings, including ones with leading zeros like "02134", pass through unchanged.

Can a CSV cell run as a formula in Excel?

Yes, it can. The converter writes text exactly as it is, so a value like =SUM(A1:A3) or +1 may run as a formula when a spreadsheet opens the file. If your JSON comes from people you don't know, check for cells starting with =, +, - or @.

Is it safe to convert JSON to CSV here?

The conversion runs on your device, and the JSON and CSV are not sent to us. Analytics record clicks like Convert and Download and the time a run took. If conversion fails, the error text goes to analytics too, and in rare cases it quotes a few characters from near the mistake.

JSON to CSV Features: Flatten, Delimit, Download

Every key becomes a column, nested objects can flatten into dot-notation columns, and the result downloads as a .csv file for any spreadsheet.

JSON to CSV converter flattening nested address fields into address.city and address.zip columns

Flatten Nested JSON Into Columns

Turn on Flatten nested objects and each nested field gets its own column, named with dots, such as address.city or address.geo.lat. Leave it off to keep nested objects as JSON text.

  • Dot-notation columns at any depth
  • Off by default: nested JSON in one cell
  • Arrays stay as JSON text in a cell
Try now
JSON to CSV rows with comma, semicolon, tab and pipe delimiters, with quotes only around Oslo, NO in the comma row

Choose Comma, Semicolon, Tab or Pipe

Pick the delimiter your app expects before you convert. A cell that holds the delimiter, a double quote or a line break is wrapped in quotes, with inner quotes doubled.

  • Four delimiters, comma by default
  • Quotes added only where needed
  • Header row on or off
Try now

Columns From Every Key

The converter reads every object in the array and makes a column for each key it finds, in the order it first appears. A row without that key gets an empty cell.

Download or Copy the CSV

The CSV shows in a preview box next to your JSON. Download saves it as data.csv with LF line endings, or Copy CSV puts it on your clipboard.

Clear Errors for Wrong Input

If the JSON has a syntax error, the message shows where. If the top level is an object instead of an array, or the array is empty, you get a plain message saying so.

Free With No Account

Convert as often as you like with no sign-up or row limit in the tool. Your JSON is converted on your device, and analytics record clicks like Convert and the time a run took.

JSON to CSV Use Cases

Move data between APIs and spreadsheets without writing conversion scripts.

API Data Export

Paste an array from an API response and get rows you can open in Excel or Google Sheets. If the response wraps the array in an object, copy the array part first.

  • Turn a list of records into spreadsheet rows
  • Flatten nested fields like user.address.city into columns
  • Share a CSV with teammates who don't read JSON

Database Exports

Convert a JSON export from MongoDB, Firebase or another database into CSV for a report. Records with different fields still line up, because every key gets a column.

  • Records with mixed fields line up in columns
  • Missing values become empty cells, not errors
  • Pick semicolons for Excel in comma-decimal locales

Data Analysis

Load JSON records into pandas, R or a pivot table as CSV. Comma output reads with pandas read_csv as is, and tab output pastes into a spreadsheet as columns.

  • Feed the downloaded file to pandas read_csv
  • Build a pivot table from JSON records
  • Paste tab-separated output straight into a sheet