JSON to CSV Converter
Convert JSON arrays of objects into spreadsheet-ready CSV instantly for Excel, Google Sheets, and CSV imports.
What this tool does
Convert a JSON array of objects into CSV rows and columns for spreadsheet workflows. Each JSON object becomes one CSV row, and each key becomes a column header. This is useful for API responses, exports, spreadsheet review, and quick tabular analysis. Nested objects are flattened into dot-notation columns such as `user.name` and `user.email`, so nested values can map to spreadsheet columns. If records use inconsistent keys, missing values appear as empty cells.
- Each object becomes one row
- Keys become column headers
- Missing keys result in empty cells
Tool interface
Paste a JSON array of objects below. Each object becomes a row, and each key becomes a column. If your data is nested, flatten it first for cleaner output.
Input
Output
Example input
Primary example (flat JSON):
[
{ "name": "Ana", "email": "ana@example.com", "age": 28 },
{ "name": "Bob", "email": "bob@example.com", "age": 34 }
]
Nested JSON example (flattened output):
[
{ "user": { "name": "Ana", "email": "ana@example.com" }, "age": 28 },
{ "user": { "name": "Bob", "email": "bob@example.com" }, "age": 34 }
]
Missing keys example (empty cells):
[
{ "name": "Ana", "age": 28 },
{ "name": "Bob" }
]Example output
Primary example (flat JSON): name,email,age Ana,ana@example.com,28 Bob,bob@example.com,34 Nested JSON example (flattened output): user.name,user.email,age Ana,ana@example.com,28 Bob,bob@example.com,34 Missing keys example (empty cells): name,age Ana,28 Bob,
- Keys become column headers and each object becomes one CSV row.
- Nested object keys are flattened into dot-notation columns such as `user.name` and `user.email`.
- If some objects do not contain every key, the converter leaves those CSV cells empty.
Step-by-step instructions
- Paste a valid JSON array of objects.
- Check that each object contains the fields you want as CSV columns.
- If your data is not an array of objects, fix the structure before converting.
- If the JSON includes nested arrays or complex nested data, flatten it first so values map to usable columns.
- Run the conversion.
- Review the generated header row and values.
- Copy or download the CSV for Excel, Google Sheets, or imports.
Common use cases
- Exporting API response data into spreadsheets.
- Preparing JSON datasets for reporting or CSV imports.
- Sharing tabular data with non-technical teams.
- Checking records before loading data into downstream systems.
Use this converter to quickly validate tabular output before loading data into reporting tools, spreadsheets, or downstream imports.
Common mistakes to avoid
- Pasting a single JSON object instead of an array. The converter expects an array of records.
- Using invalid JSON syntax (missing commas, quotes, or brackets).
- Expecting nested arrays to automatically flatten into clean spreadsheet columns.
- Using inconsistent keys across records, which leads to empty cells in output.
- Pasting NDJSON (newline-delimited JSON) instead of a standard JSON array.
- Expecting deeply nested arrays to become clean spreadsheet columns without preprocessing.
Frequently Asked Questions
What JSON format does this converter accept?
Use a non-empty JSON array of objects, for example `[{"name":"Ana"},{"name":"Bob"}]`. Arrays containing non-object values are not valid for this converter.
Can I convert a single JSON object to CSV?
Yes. Wrap the object in an array first, for example `[{"name":"Ana"}]`.
How are missing keys handled?
If a record is missing a key that appears in other records, that row gets an empty cell for that column.
Can this convert nested JSON?
Yes. Nested objects are flattened into dot-notation columns. Nested arrays usually need preprocessing or flattening first for cleaner CSV columns.
Why did my JSON to CSV conversion fail?
Common causes are invalid JSON syntax, input that is not an array of objects, or NDJSON pasted instead of a standard JSON array.
Is this JSON to CSV converter free?
Yes, it is free to use.
Can I open the output in Excel or Google Sheets?
Yes. The generated CSV is compatible with Excel, Google Sheets, and most CSV import workflows.
Does this run in the browser?
Yes. Conversion runs in your browser.
Why does my CSV have empty cells?
Empty cells usually happen when some objects are missing keys that appear in other records, or when nested arrays were not preprocessed before conversion.
Can I convert arrays inside nested JSON?
Nested arrays usually need preprocessing or flattening before they produce useful spreadsheet columns.
Related tools
Related guides
Related categories
Looking for other utilities in this area? CSV Tools, JSON Tools