JSON WalletPrivacy-first JSON & API workspace

JSON ↔ CSV

Convert an array of JSON objects into CSV, or parse CSV back into JSON. Values containing commas, quotes or newlines are escaped correctly.

Input
Output

Convert JSON to CSV (and CSV to JSON)

Spreadsheets, BI dashboards and finance teams live in CSV; applications and APIs live in JSON. This converter bridges the two in both directions. Turn an array of JSON objects — say, a list of users or orders from an API — into a tidy table you can open in Excel or Google Sheets, or parse a spreadsheet export back into JSON you can drop straight into code. There is no upload step and no row limit beyond your browser's memory.

How to use it

  1. Choose a direction above: JSON → CSV or CSV → JSON.
  2. Paste your data into the input, or click Load sample to see the expected shape.
  3. The converted result appears on the right. Copy it or Download it as a file.

A worked example

This JSON array:

[
  { "id": 1, "name": "John", "active": true },
  { "id": 2, "name": "Alice", "active": false }
]

becomes this CSV:

id,name,active
1,John,true
2,Alice,false

The keys of the first object define the header row, and each object becomes one data row. If some objects have extra keys, those columns are added to the header and the rows that lack them are left blank.

When you would reach for it

Exporting an API response so a non-technical colleague can filter it in a spreadsheet, seeding a database from a CSV, building a test fixture, or preparing data for a chart. Flat arrays of objects pair well with the JSON editor's table view and with the JSON to SQL tool when you want INSERT statements instead of a spreadsheet.

Privacy

Everything runs client-side and works offline once loaded. Your data is never sent to a server, so it is safe to convert exports that contain customer records, revenue figures or other sensitive information.

Frequently asked questions

What shape of JSON works best?

An array of flat objects. Each object becomes a row and the union of all keys becomes the header, so objects that are missing a field simply get an empty cell in that column. Nested objects and arrays are serialized as JSON text inside the cell.

Are numbers preserved when parsing CSV?

Yes — numeric and boolean-looking cells are converted to numbers and booleans; empty cells become null. Everything else stays a string.

How are commas and quotes inside values handled?

Following the common CSV convention (RFC 4180), any value containing a comma, double quote or newline is wrapped in double quotes, and embedded quotes are doubled. So Smith, John is written as "Smith, John" and stays a single field.

Will my ZIP codes and IDs lose leading zeros?

When converting JSON → CSV, string values are preserved exactly. On the way back (CSV → JSON) a value like 01234 is treated as a number and loses the zero — wrap it in quotes in the CSV if it must stay a string.

Does it open in Excel and Google Sheets?

Yes. The output is standard comma-separated text that imports cleanly into Excel, Google Sheets, Numbers and any BI tool that reads CSV.

Is my file uploaded anywhere?

No. Both conversion directions run entirely in your browser — the data never leaves your device.

Press ⌘ K for commands