Runs in your browser

JSON to CSV

Flatten JSON, including nested objects and arrays, into a CSV or Excel table.

Part of the File Converter bot
Processed in your browser
1

JSON

2

Table options

Lists inside records
Nested objects
3

Table

About the JSON to CSV Converter

This JSON to CSV converter flattens JSON into a table you can open in Excel or Google Sheets. Nested objects become columns such as address.city, arrays are joined or kept as JSON, and the list of records is found automatically even inside a wrapper object.

How to use the JSON to CSV Converter

  1. Paste JSON or open a .json file. An array of records, a wrapper object or JSON Lines all work.
  2. Choose how nested objects and lists should become columns.
  3. Download the table as CSV or Excel, or copy it into a spreadsheet.

Nested data, flattened

API responses are rarely flat. Nested objects become columns like address.city, and lists can be joined into one cell, kept as JSON, or spread over columns like tags.1 and tags.2.

Finds the records for you

Many APIs wrap results as {"data": {"items": [...]}}. Sitebot finds the list of records automatically and lets you choose another one if the response contains several.

Every key becomes a column

Records don't need identical keys. Every key that appears anywhere becomes a column, in the order it first appears, and missing values stay empty.

Questions

Is my JSON uploaded?

No. The conversion happens in your browser, on your device.

Can I get an Excel file?

Yes. Choose Excel (.xlsx) next to the Download button.

What if my JSON is invalid?

You'll see the error message with its position. The JSON Formatter can help find and fix the problem.

Does it support JSON Lines?

Yes. A file with one JSON object per line (.jsonl or .ndjson) is read record by record.

Also searched as: json to excel · convert json to csv online · nested json to csv · json array to csv · flatten json to table · json to xlsx