JSON to CSV Converter

Turn a JSON array of objects into a clean CSV file you can open in Excel, Google Sheets or any spreadsheet. Nothing you paste leaves your browser — this tool runs entirely on your device.

Share as link: your text is compressed and stored inside the link itself, after the #. That part of a web address is never sent to our server — we never see it, log it, or store it. Anyone with the link can read the text, and the link can never be taken down or revoked, because no copy exists on a server. Don't share secrets this way. Some chat apps mangle long links.

What this tool does

APIs speak JSON and humans speak spreadsheets, so this conversion is a daily chore for developers, analysts and marketers exporting data. Paste a JSON array — the output of an API call, a database export, a webhook log — and this converter collects every key across every object into a header row, then emits one CSV row per object with proper quoting: values containing commas, quotes or line breaks are wrapped and escaped exactly the way Excel and Google Sheets expect. Nested objects are flattened to their string form rather than silently dropped, and a single JSON object (not wrapped in an array) converts to a one-row CSV. Download the result or copy it straight into a sheet.

How to use it

  1. Paste a JSON array (or a single object) into the box above.
  2. Click “Convert to CSV”.
  3. Download the result as a file, or copy it into your spreadsheet.

Example

Before:

[{"name":"Ana","city":"Lisbon"},{"name":"Ben","city":"Austin","vip":true}]

After:

name,city,vip
Ana,Lisbon,
Ben,Austin,true

Good to know

Inconsistent data is the norm: objects with different keys get a shared header with blanks where a key is missing, as the example shows. If your JSON is deeply nested, flatten it first or accept the string form of nested values. And if the JSON fails to parse, the JSON Formatter will find the error position for you.

Frequently asked questions

What if my JSON objects have different keys?

The header is the union of all keys across all objects. Missing values are left blank, so every row lines up under the same columns.

Can I open the result in Excel?

Yes. The output follows RFC-style CSV quoting, and the Download button saves it as a text file you can rename to .csv and open directly.

What about very large arrays?

Conversion is local and fast for thousands of rows. At tens of thousands of rows a dedicated command-line tool will be more comfortable.

Related tools

CSV to JSON

The reverse conversion.

JSON Formatter

Validate and pretty-print JSON first.

CSV to HTML Table

Publish the same data as a web table.

TSV ↔ CSV Converter

Move between tab- and comma-separated data.