JSON to CSV converter
Convert JSON arrays into CSV rows with automatic column mapping
- Paste a JSON array of objects into the input field
- The converter identifies all unique keys across objects to build column headers
- Nested objects are flattened with dot notation for readable column names
- Click "Convert to CSV" to generate the output
- Copy or download the CSV for use in spreadsheets, databases, or reports
JSON input:
[
{
"name": "Alice",
"age": 28,
"city": "Portland",
"active": true
},
{
"name": "Bob",
"age": 35,
"city": "Seattle",
"active": false
}
]CSV output:
"active","age","city","name" "true","28","Portland","Alice" "false","35","Seattle","Bob"
What JSON structures work best?
Arrays of objects with consistent keys produce the most predictable CSV output. Flat or shallow objects are ideal.
How are nested objects handled?
Nested objects are flattened with dot notation. For example, {"address": {"city": "Portland"}} becomes a column named address.city.
What happens to arrays inside JSON?
Arrays are converted to JSON strings in a single cell. For array-heavy data, consider preprocessing before conversion.
Can I convert a single JSON object?
Yes. A single object is treated as one row in the CSV output.
How are empty or missing values handled?
Missing keys are left blank in the CSV output. Empty strings remain empty.