JSON to CSV

What is a JSON to CSV?

Convert JSON arrays of objects into clean Comma-Separated Values (CSV) spreadsheets. Automatically detects column headers, handles nested object flattening, and supports custom delimiters (comma, semicolon, tab).

Why Use This Tool?

  • Export API Data to Excel: Convert REST API JSON response arrays into CSV files for opening in Microsoft Excel or Google Sheets.
  • Database Export Formatting: Export MongoDB or PostgreSQL JSON query results to spreadsheet format.
  • Data Cleaning & Analysis: Convert raw JSON log arrays into flat CSV tables.

How to Use

  1. Paste a JSON array of objects (e.g. `[{"id": 1, "name": "Alice"}]`).
  2. Select Delimiter (Comma `,`, Semicolon `;`, or Tab `\t`).
  3. Copy generated CSV text or click "Download .csv File".

Real Working Example

Input:

JSON Array:
[
  { "ID": 101, "Product": "Laptop", "Price": 999 },
  { "ID": 102, "Product": "Mouse", "Price": 25 }
]

Output Result:

CSV Output:
ID,Product,Price
101,Laptop,999
102,Mouse,25

Important Technical Details & Specifications

  • PapaParse & Custom CSV Generator: Uses PapaParse engine for RFC 4180 compliant CSV string generation.
  • Automatic Column Header Extraction: Collects all unique keys across all JSON objects for complete column headers.
  • Local Memory Execution: Zero network overhead.

Related Developer Tools

Frequently Asked Questions

How does it handle nested JSON objects?

Nested objects and arrays are either flattened with dot notation (e.g. `user.address.city`) or stringified into cell contents.

Does it support opening the output CSV directly in Excel?

Yes, downloading as `.csv` opens seamlessly in Microsoft Excel, Apple Numbers, and Google Sheets.

Is it free?

Yes, 100% free.

Are my JSON arrays sent to an external server?

No, all conversion executes 100% locally in your web browser.

Can I use semicolons for European Excel CSV format?

Yes, select Semicolon (;) as the delimiter.