JSON to CSV Converter

Convert a JSON array of objects to CSV online. Free, fast, and private, everything runs in your browser.

Independently verified for accuracy

Calculator by Toolsloft ↗

Paste a JSON array of objects and get clean CSV you can open in any spreadsheet. It builds the header row from every key it finds, quotes fields that contain commas or quotes, and runs entirely in your browser so your data never leaves the page.

How this is calculated

It parses the JSON, collects column headers as the union of object keys in first-seen order, and writes one row per object. Fields containing a comma, double quote, or line break are wrapped in quotes with inner quotes doubled, following the RFC 4180 CSV convention. Nested objects and arrays are written as compact JSON.

How to use

  1. Paste a JSON object or an array of objects into the input box.
  2. The CSV is generated instantly with a header row from every key.
  3. Copy the result or paste it straight into a spreadsheet.

Examples

  • Array of two records: [{"name":"Ada","age":36},{"name":"Al","age":40}]
  • Mixed keys: [{"a":1,"b":"x,y"},{"a":2,"c":true}]

FAQ

What JSON shape does it accept?
A single object becomes one row, and an array of objects becomes one row each. The columns are the combined set of keys across all objects, so records with different fields still line up. Arrays of plain numbers or strings are rejected because they have no column names.
How are commas and quotes handled?
Any value containing a comma, double quote, or line break is wrapped in double quotes, and quotes inside it are doubled. That is the standard RFC 4180 rule that spreadsheets expect.
What happens to nested objects?
A nested object or array is written as compact JSON inside the cell. If you need those flattened into separate columns, restructure the JSON before converting.

Embed this calculator

Add this free calculator to your own site. Copy the code and paste it where you want it to appear.