Skip to content

JSON to CSV

Turn a JSON array into a CSV file for Excel.

Runs in your browser · free · no sign-up

JSON
CSV

About the JSON to CSV

Got data from an API? Convert it to CSV and open it in Excel or Google Sheets. All keys from all rows become columns, and nested values are flattened with dot notation.

API responses, database exports and app data usually arrive as JSON, but managers, accountants and analysts work in Excel and Google Sheets. Converting JSON to CSV makes the data easy to filter, sort, chart and share. The tricky parts are records with different keys and nested objects, which spreadsheets cannot represent directly.

This converter collects every key that appears in any record and turns them into columns, so no data is lost when records differ. Nested objects are flattened with dot notation, such as user.name, and arrays are written as JSON text in one cell. Choose comma, semicolon or tab as the separator. The downloaded file includes a UTF-8 marker, so Excel shows Urdu, Arabic and other non-English text correctly.

How to use the JSON to CSV

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

Key features

  • All keys from all records become columns.
  • Nested objects flattened with dot notation.
  • Arrays kept as JSON text.
  • Comma, semicolon or tab separator.
  • Excel-friendly UTF-8 download.

Practical uses

  • Opening API data in Excel.
  • Sharing app exports with non-technical colleagues.
  • Preparing data for Google Sheets charts.
  • Auditing records from a NoSQL database.
  • Exporting form submissions from a web app for a manager who uses Excel.

Example

[{"id":1,"user":{"name":"Ali"}},{"id":2,"user":{"name":"Sara"},"vip":true}] becomes columns id, user.name and vip, with the vip cell empty for the first row.

Tips and common mistakes

  • Use semicolon if your Excel uses commas as decimal separators.
  • Flatten deeply nested data in your code first if column names get too long.
  • Check that the JSON is an array of objects.
  • Open the downloaded file in Excel by double-clicking, or import it in Google Sheets with File → Import.

Limitations

  • Arrays of objects inside records are not expanded into separate rows.
  • Extremely large arrays may be slow in the browser.

Privacy

Conversion runs locally.

Frequently asked questions

How are nested objects handled?

They are flattened, so {"user":{"name":"Ali"}} becomes a column called user.name.

What about arrays inside objects?

Arrays are written as JSON text inside one cell.

Will Excel show Urdu text correctly?

Yes. The downloaded file includes a UTF-8 marker so Excel reads non-English text correctly.

Can I create a real .xlsx file?

Yes, with the JSON to Excel tool, which creates a formatted spreadsheet.

What if my JSON is a single object?

It becomes one row. If the object only wraps a list, such as {"items": [...]}, that list is used as the rows automatically.

Related tools

CSV to JSONConvert CSV rows to a JSON array.
YAML to JSONConvert YAML to JSON and back.
JSON MinifierCompress JSON to a single line.
XML to JSON ConverterNewConvert XML to JSON and JSON to XML.