JSON to CSV Converter (and CSV to JSON)

Convert a JSON array to CSV for Excel or Google Sheets — or CSV back to JSON — with nested fields flattened automatically.

Last updated:

JSON to CSV converter

Got data from an API or an app export as JSON but need it in a spreadsheet? This JSON to CSV converter turns an array of objects into rows and columns you can open in Excel or Google Sheets. Nested objects are flattened into dotted columns (address.city), arrays are kept as JSON text, and every column from every row is included. It also works the other way — CSV to JSON — with smart number and true/false detection that keeps PIN codes and phone numbers intact.

How to use it

  1. Choose the direction and the delimiter.
  2. Paste your JSON array (or CSV with a header row).
  3. Check the table preview, then copy or download.

Example

The sample student list becomes a CSV with columns name, class, marks, address.city, address.pin — ready to sort by marks in Excel. The PIN codes stay as text so leading zeros are never lost. Validate messy JSON first with the JSON formatter, and clean duplicate rows withremove duplicate lines.

Rate this tool

Frequently asked questions

How do I convert JSON to CSV?
Paste a JSON array of objects. Each object becomes a row and each key a column; nested objects are flattened into dotted column names like address.city. Download the CSV and open it in Excel or Google Sheets.
Can I convert CSV back to JSON?
Yes — switch to “CSV → JSON”. The first row is used as the keys, and numbers, true/false and null are converted to proper JSON types (turn this off to keep everything as text).
Why do numbers like 007 stay as text?
Values with leading zeros — PIN codes, phone numbers, roll numbers — would lose their zeros as numbers, so they’re kept as text on purpose.
Does Excel open the file correctly?
Yes. Choose comma for most cases; if your Excel uses semicolons for CSV (common with European settings), choose semicolon. Hindi and other Unicode text is saved with UTF-8 encoding.