JSON to CSV Converter
Convert a JSON array of objects to CSV format. Auto-generates headers from keys, flattens nested objects, and lets you download as a .csv file. Free, private, no uploads.
How It Works
Paste JSON Array
Enter a JSON array of objects (e.g. [{"name":"John"},{"name":"Jane"}]). The tool validates your JSON instantly.
Choose Flatten Option
Toggle “Flatten nested objects” to convert nested fields like address.city into dot-notation column headers.
Review CSV Preview
The CSV output updates automatically with headers as the first row. The status bar shows the number of rows and columns.
Download or Copy
Click “Download CSV” to save the result or “Copy CSV” to copy it to your clipboard for use in spreadsheets.
About JSON to CSV Converter
This converter transforms a JSON array of objects into a properly formatted CSV (Comma-Separated Values) file. It automatically extracts all unique keys across every object to build the header row. Nested objects can be flattened using dot notation (e.g. address.city) for cleaner columns, or left as serialized JSON strings. Values containing commas, double-quotes, or newlines are properly escaped per RFC 4180. All processing happens entirely in your browser — no data is uploaded to any server. Use the result directly in Excel, Google Sheets, or any CSV-compatible application.
Auto-Generated Headers
Headers are extracted from all unique keys across every object in the array. Deeply nested paths use dot notation when flattening is enabled.
Nested Object Support
Flatten nested objects into dot-notation columns, or keep them as JSON strings within a single cell. Handles arrays, booleans, numbers, and null values.
Proper CSV Escaping
Fields containing commas, double quotes, or newlines are automatically wrapped in double quotes with internal quotes escaped according to RFC 4180.
100% Private & Free
All processing is done in your browser with pure JavaScript. No server uploads, no data leaves your device. Works offline after page load.