JSON to CSV Converter
Convert a JSON array of objects to CSV online. Automatic column headers from the union of all keys, delimiter choice and proper quoting — all in-browser.
- Header row built from the union of all object keys
- Missing keys become empty cells so rows align
- Comma, semicolon or tab delimiter output
- Automatic quoting and escaping of special characters
- Nested objects and arrays serialised as JSON strings
- 100% private — runs entirely in your browser
How to use the JSON to CSV Converter
- 1
Paste your JSON array of objects, or drop a .json file.
- 2
Choose the delimiter for the output CSV.
- 3
Click Convert to CSV to build the header row and data rows.
- 4
Review the CSV in the output box.
- 5
Copy it or download a ready-to-open .csv file.
About the JSON to CSV Converter
The ByteTools JSON to CSV Converter flattens a JSON array of objects into clean CSV that opens straight in Excel, Google Sheets or any spreadsheet. It scans every object, builds a header row from the union of all keys, and escapes any field that contains a comma, quote or line break.
Processing is 100% local in your browser with JavaScript — your JSON is never uploaded to a server. That keeps API responses, database dumps and other sensitive payloads private while you turn them into a spreadsheet-friendly format.
It is ideal for developers exporting API data, analysts preparing reports, and anyone who receives JSON but needs a table. Objects with different keys are handled gracefully: missing values become empty cells so every row lines up under the correct column.
Frequently asked questions
How does JSON to CSV handle objects with different keys?
The tool collects every key across all objects to build one complete header row. If a particular object is missing a key, that cell is left empty, so all rows stay aligned under the correct columns without shifting data.
What happens to nested objects and arrays in my JSON?
Values that are themselves objects or arrays are written into the cell as a compact JSON string. This keeps the data intact in a single column rather than trying to explode it into extra columns that could break the table.
Will the CSV open correctly in Excel?
Yes. Fields containing commas, quotes or newlines are wrapped in double quotes and internal quotes are doubled, following the standard CSV escaping rules that Excel and Google Sheets expect.
Can I convert a single JSON object instead of an array?
Yes. A single object is treated as a one-row table, producing a header row of its keys and one data row of its values. For multiple records, wrap them in an array.
Is my JSON sent to a server?
No. The conversion is done in your browser with JavaScript and nothing is uploaded, so you can safely convert private API responses and database exports.
Related tools
- CSV to JSON ConverterConvert CSV to a JSON array of objects online. Header-row detection, comma/semicolon/tab d…
- CSV Viewer & TableView CSV as a clean HTML table online. Live search filter, row and column counts, delimite…
- CSV Cleaner & DeduplicatorClean CSV online: remove duplicate rows, trim whitespace, drop empty rows and normalise th…
- JSON FormatterFormat, beautify and minify JSON online with 2-space, 4-space or tab indentation. Sort key…
- Markdown Table GeneratorBuild GitHub-flavored Markdown tables with an editable grid, column alignment and CSV/TSV …