JSON to CSV Converter — Export JSON to Excel Online
Convert a JSON array of objects to CSV format. Keys become headers, each object becomes a row. Download the result for Excel or Google Sheets.
All records contribute columns. Missing values and null become empty cells. Nested arrays stay in one cell; rows are never multiplied. Literal dots in keys are escaped with a backslash. Formula protection prefixes risky text with an apostrophe; turn it off for an exact raw-text export.
Prefer a styled Excel workbook?Convert nested JSON records into a reliable CSV table
An object becomes one row; an array of objects becomes several rows. The converter gathers columns from every record, flattens nested objects when enabled, and keeps arrays in a single cell.
Select the record array from your API response and paste it.
Choose flattening, array representation and delimiter; check the preview.
Download CSV or switch to a real Excel workbook.
Before
[{"name":"Alice","address":{"city":"London"}},{"name":"Bob","active":true}]After
name,address.city,active Alice,London, Bob,,true
- Missing and null values become empty cells. Keys appearing in later records are included rather than dropped.
- Keep arrays as JSON for a structured representation, or join their values with semicolons. Nested arrays never multiply rows automatically.
- Formula protection prefixes risky text with an apostrophe. XLSX output preserves JSON strings as typed string cells.
Need to read or debug JSON from this result? Paste it into the JSON beautifier to format, validate and explore it as a tree.
Frequently Asked Questions
What JSON format works for CSV conversion?
An array of objects where each object has the same keys. Keys become column headers and each object becomes a row. Example: [{"name":"Alice","age":30},{"name":"Bob","age":25}]
Are nested objects supported?
Nested objects are flattened into dot-path columns by default. Turn flattening off to keep objects as JSON text inside a cell. Arrays can stay as JSON or be joined with semicolons.
Can I open the CSV in Excel or Google Sheets?
Yes. Click Download to save the .csv file, then open it directly in Excel or Google Sheets.
People Also Ask
How do I convert a JSON array to CSV for Excel?
Paste your JSON array into the converter above and click Download — the tool generates a standard .csv file that opens directly in Excel or Google Sheets, with each object's keys as column headers.
What happens if my JSON objects have different keys?
The CSV output includes a column for every key found across all objects. Objects missing a given key get an empty cell in that column, so no data is silently dropped.
Can I convert deeply nested JSON to CSV?
The converter handles arrays of objects and flattens nested objects by default. Array values stay in one cell; choose JSON text or semicolon-joined values. Every record contributes column names.
How do I convert JSON to CSV in Python or JavaScript?
In Python, the csv and json modules combined with DictWriter handle it in a few lines. In Node.js, libraries like json2csv or papaparse do the same. Use this tool for a one-off conversion without writing any code.
Does converting JSON to CSV lose any data?
Strings, numbers and booleans map to cells. Nested objects become columns when flattening is enabled. Arrays remain in one cell. Missing and null values become empty cells.