JSON to CSV converter
Convert a JSON array of objects to CSV, or CSV back to JSON — both directions, with download. Runs in your browser.
How to use
Paste a JSON array of objects and it's converted to CSV instantly, with a header row built from your keys. Need the other direction? Hit the swap button to turn CSV (with a header row) back into a clean JSON array — the tool handles both ways.
Values containing commas, quotes or line breaks are escaped correctly, so the CSV opens cleanly in Excel, Google Sheets or any spreadsheet. Copy the result or download it as a .csv or .json file.
Everything runs in your browser, so even sensitive data never leaves your device, and it works offline.
Examples
Turn a JSON response into a CSV you can open in Excel or import elsewhere.
Convert CSV exported from a spreadsheet into JSON for your app or API.
Produce a tidy header row from a list of objects with varying keys.
Frequently asked questions
Does it handle commas and quotes in values?
Yes. Cells containing the delimiter, quotes or newlines are wrapped and escaped per the CSV standard, so they import cleanly.
What if my objects have different keys?
The CSV header is the union of all keys across the rows; missing values are left as empty cells.
Can it convert CSV back to JSON?
Yes. Use the swap button — CSV with a header row becomes a JSON array of objects.
Is my data uploaded?
No. Conversion happens in your browser, so your data stays private.
Related tools
Format, validate and minify JSON with precise error locations and key sorting.
Convert between JSON and YAML in either direction, instantly.
Convert an Excel (.xlsx/.xls) spreadsheet to CSV, with multi-sheet support, in your browser.
Turn CSV data into a downloadable Excel (.xlsx) workbook, client-side.
Generate TypeScript interfaces from a JSON sample, with nested types inferred.