JSON to CSV
Paste a JSON array of objects and instantly download it as RFC 4180-compliant CSV. Automatically collects all keys as column headers, handles nested objects by stringifying them, and escapes commas and quotes. Runs in your browser.
Convert a JSON array into comma-separated CSV text in the browser. The tool combines object keys found across the array, writes them as the header row, and escapes values when CSV quoting is required.
How to convert JSON to CSV
- Paste a valid JSON array into the input box.
- Make sure the array contains objects with the fields you want to export.
- Review the generated CSV header and rows.
- Check the reported row and column counts.
- Copy the CSV output when ready.
How columns and values are generated
Column names are collected from object keys across the entire array in first-seen order, so later objects can add new columns. Missing properties produce empty cells.
Null and undefined values become empty strings. Objects and arrays used as cell values are serialized with JSON.stringify. Values containing commas, quotes, carriage returns, or line breaks are wrapped in quotes and embedded quotes are doubled.
Privacy and limitations
The conversion runs locally in the browser and the JSON is not intentionally sent to a server. The input must be a JSON array, and the tool does not recursively flatten nested objects into separate columns. Nested objects or arrays are stored as JSON text inside one CSV cell.
Frequently asked questions
Does every object need the same keys?
No. Keys are collected across the whole array and missing values become empty cells.
Can nested objects be exported?
Yes, but they are serialized as JSON text inside a single cell rather than flattened into multiple columns.
How are quotes escaped?
CSV fields that need quoting use doubled quote characters inside surrounding quotes.
Can I convert a single JSON object?
No. The current tool expects a JSON array.
What happens to null values?
They are exported as empty CSV cells.