JSON → CSV
Convert a JSON array of objects to CSV. Headers are extracted from the first object's keys.
Convert JSON to CSV online: export API data to spreadsheets instantly
APIs return data in JSON, but stakeholders want spreadsheets. This tool bridges that gap by converting a JSON array of objects into a clean, RFC 4180-compliant CSV file in your browser: no upload, no server, no waiting. Paste in your API response, download the CSV, and open it in Excel or Google Sheets in seconds.
The converter auto-detects all column headers from the union of keys across all objects, handles missing fields gracefully with empty cells, and properly escapes values that contain special characters. The result is a file that opens correctly in any spreadsheet application.
Step-by-step guide
- 1Paste your JSON array
Enter or paste a JSON array of objects into the input panel. Each object represents one row in the CSV output. - 2Headers are auto-detected
The tool scans all objects and builds a unified header row from the union of all keys across every object. - 3Preview the CSV output
The generated CSV appears instantly. Values containing commas, quotes, or newlines are automatically quoted and escaped. - 4Download or copy
Click Download CSV to save a .csv file, or click Copy to put the text on your clipboard. - 5Open in a spreadsheet
Import the downloaded CSV into Excel, Google Sheets, or any other spreadsheet application for further analysis.
Related Tools
CSV → JSON
Convert comma-separated data to JSON arrays with automatic header detection.
JSON → XML
Serialize JSON objects to well-formed XML with configurable root element.
XML → JSON
Parse XML documents to JSON with attribute and text node preservation.
HTML → Markdown
Convert HTML markup to clean Markdown with support for headings, lists, and links.
Frequently Asked Questions
- What JSON structure does this tool expect?
- The tool expects a JSON array of objects (rows). Each object's keys become the CSV column headers and the values become the cell contents.
- What happens if some objects are missing certain keys?
- Missing keys produce empty cells in the output. The header row includes all keys found across all objects in the array.
- How are values with commas or quotes handled?
- Values that contain commas, double-quote characters, or newlines are automatically wrapped in double quotes and internal quotes are escaped by doubling them, following the RFC 4180 CSV standard.
- Can I convert nested JSON objects?
- Nested objects are serialised as JSON strings in the cell. For deeply nested data it is often better to flatten the structure before converting.
- What encoding does the downloaded CSV use?
- The downloaded file uses UTF-8 encoding, which is compatible with most modern spreadsheet applications. Excel on Windows may need the file saved with a BOM for automatic detection.
- Is there a row limit?
- No server-side limit. Very large arrays (tens of thousands of rows) may take a moment to process depending on your browser and device.
- Is my JSON data sent to a server?
- No. All conversion happens in your browser. Your data is never transmitted or stored anywhere.
- Is this tool free?
- Yes, completely free with no account, no sign-up, and no usage limits.
AlteredIdea vs alternatives
vs server-side converters: AlteredIdea converts in your browser: your data never leaves your device.
vs writing scripts: Instant results, no coding needed.
vs paid tools: Completely free, no account required.