JSON to CSV Converter

Spreadsheets and many data-import tools expect CSV, not JSON. This converter takes a JSON array of objects and turns it into a CSV file, using the object keys as column headers, so you can open API data directly in Excel, Google Sheets, or any tool that accepts CSV.

Your data stays in your browser — this tool runs entirely on the client side and nothing is uploaded to a server.

How to Use the JSON to CSV Converter

  1. Paste a JSON array of objects into the input box, e.g. [{"name":"Ada","age":30}].
  2. Click "Convert" to generate the CSV output.
  3. Copy the CSV or download it as a .csv file.

How the conversion works

The converter reads the keys from the first object in the array to build the CSV header row, then writes one row per object, matching values to their corresponding columns. Fields containing commas, quotes, or line breaks are automatically wrapped in quotes to keep the CSV valid.

Limitations to be aware of

CSV is a flat, tabular format, so deeply nested objects or arrays within a field are converted to their JSON string representation rather than expanded into further columns. If your JSON has inconsistent keys across objects, missing fields are left blank in that row.

Example

JSON input
[{"name":"Ada","age":30},{"name":"Grace","age":41}]
name,age
Ada,30
Grace,41

Tips

  • Make sure your JSON is an array of flat (non-nested) objects for the cleanest CSV output.
  • Open the resulting CSV in a spreadsheet app to verify columns line up as expected.

Frequently Asked Questions

What happens with nested objects or arrays?

Nested values are converted to their JSON string form and placed in a single cell, since CSV cannot represent nested structure natively.

Does column order matter?

Columns follow the key order of the first object in the array.