JSON to CSV Converter
Convert a JSON array of objects to CSV — 100% local. Choose how to flatten nested data.
Input Requirements
This converter expects a JSON array of objects at the root. Each object becomes one CSV row. Column headers are collected from all keys found across all objects — so if only some objects have a field, that column still appears in the CSV header (with an empty value for rows that lack the key).
Input
[{"id":1,"name":"alice","active":true},{"id":2,"name":"bob","active":false},{"id":3,"name":"carol"}]Output
id,name,active 1,alice,true 2,bob,false 3,carol,
CSV Encoding Rules
| Value type | CSV output | Why |
|---|---|---|
| Plain string | alice | No quotes needed |
| String with comma | "alice, bob" | Wrapped in double quotes |
| String with newline | "line1\nline2" | Wrapped in double quotes |
| String with double quote | "say ""hello""" | Quotes doubled inside quotes |
| Boolean | true or false | Lowercase string |
| Number | 42 or 3.14 | No quotes |
| null | (empty) | Empty cell |
| Nested object | [object Object] or stringified | Not recommended — flatten first |
Warning: Nested objects and arrays are not natively expressible in CSV. Flatten your JSON first using the JSON Flattener if you have nested data.
Frequently Asked Questions
Your files stay on your computer. Dad promised.