JSON to CSV
Convert JSON arrays to CSV spreadsheet format.
Convert JSON to CSV for Excel, Google Sheets or a database import. Paste an array of objects and each object becomes a row, with a column for every key found in any of them. Nested objects are flattened into columns like address.city, lists of simple values are joined with semicolons in one cell, lists of objects get numbered columns (items.0.name), and values with commas, quotes or new lines are quoted correctly. Choose comma, semicolon or tab as the separator (semicolons suit Excel in many European countries), then copy or download the file.
Common use cases
- Open an API response in Excel or Google Sheets
- Export data from a JSON file for a spreadsheet user
- Prepare records for a CSV import into a CRM or database
- Turn logs saved as JSON into a table
How to use
- Paste JSON: an array of objects, or a single object.
- Choose the separator and whether to flatten nested objects.
- Copy the CSV or download it as a .csv file.
FAQ
My objects have different keys. Is that a problem?
No. Every key that appears anywhere gets a column, and objects without that key leave the cell empty.
Why does Excel put everything in one column?
Excel in some regions expects semicolons. Choose semicolon as the separator, or open the file with Data > From Text/CSV and pick the delimiter.
How do I go back to JSON?
Use the CSV to JSON converter.
Related tools
- CSV to JSONConvert CSV data to JSON format for APIs and applications.
- JSON to XMLConvert JSON data to XML document format.
- JSON to YAMLConvert JSON data to YAML configuration format.
- XML to JSONConvert XML documents to JSON format.
- YAML to JSONConvert YAML configuration files to JSON format.
- CSV Diff CheckerCompare two CSV files and highlight differences.