JSON ⇄ CSV

JSON to CSV converter

Convert a JSON array of objects to CSV, or turn CSV back into JSON — both directions, instantly and privately.

▌ Input
▌ Output

Two-way conversion, done locally

Paste a JSON array of objects and get a clean CSV with a header row built from the union of all keys, or paste CSV and get a JSON array back. Quoted fields, commas inside values, and escaped quotes are all handled correctly, and nested objects are serialised so nothing is lost. Everything runs in your browser, so your data never leaves your device.

Bridging two worlds

JSON and CSV are the two formats data constantly needs to move between. JSON is how APIs and apps exchange structured, nested data; CSV is what spreadsheets, analysts and bulk-import tools expect. Converting between them is a routine chore — pulling an API response into Excel for a quick pivot, or turning a spreadsheet export into JSON for a script to consume — and doing it by hand is tedious and error-prone once there are more than a few rows.

The flattening to expect

One thing worth knowing: CSV is inherently flat — rows and columns, no nesting — so when JSON contains objects or arrays inside a field, they're serialised into a single cell rather than spread across columns. That keeps the data intact and reversible, but deeply nested structures read better as JSON. For simple tabular JSON, the round-trip is clean. To just view CSV as a grid without converting, the CSV to table tool renders it instantly.

FAQ

What JSON shape does it expect?
An array of flat objects works best, e.g. [{"name":"Ada","role":"Engineer"}]. A single object is also accepted and becomes one CSV row. Nested values are stored as JSON strings in the cell.
Does CSV to JSON handle quoted commas?
Yes. Fields wrapped in double quotes can contain commas, line breaks and escaped quotes, and they're parsed correctly into JSON.
Is my data uploaded?
No — the conversion runs entirely in your browser, so nothing is sent to a server.

Related tools