The Util Box

JSON to CSV Converter

Free online json to csv converter for developers. Convert JSON arrays to tabular CSV. Fast and private.

CSV Output
Paste JSON above

Embed this tool

Copy and paste the code below into your website to embed this tool for free. An attribution link to The Util Box is required.

<iframe src="https://www.theutilbox.org/embed/json-to-csv" width="600" height="500" frameborder="0" style="border: none; max-width: 100%;" title="Free JSON to CSV Converter tool from The Util Box"></iframe>
<!-- Free tool by The Util Box — https://www.theutilbox.org/tools/json-to-csv -->
<a href="https://www.theutilbox.org/tools/json-to-csv">JSON to CSV Converter by The Util Box</a>

Frequently Asked Questions about JSON to CSV Converter

JSON to CSV Converter — Flatten an Array into a Spreadsheet

This JSON to CSV converter turns a JSON array of objects into comma-separated values ready to paste into a spreadsheet. Paste an array such as [{"name":"John","age":30}] and you get a header row followed by one row per object.

A single object works too — it is treated as a one-row table.

How the Columns Are Chosen

The header is the union of every key found anywhere in the array, so an object that has an extra field still produces a row with the right number of columns — the missing value is simply left empty. That means you can paste data from several sources with slightly different shapes and still get a single rectangular table.

Values containing a comma, a double quote or a newline are wrapped in double quotes, and any embedded quote is doubled. That is the RFC 4180 rule, and it is what stops a value like Smith, John from breaking the column alignment.

Honest Limits

  • Only the top level is flattened. A nested object or array is written into the cell as its JSON text, so the cell contains {"city":"Leeds"} rather than separate columns.
  • Only the first array is used. If your JSON contains several arrays, only the outermost one is converted.
  • Key order follows first appearance, not the order in the first object specifically, so a key that appears first in a later object still leads the header.
  • There is no reverse direction here — use the JSON Formatter on the CSV side, or the CSV import in a spreadsheet, to go the other way.

Related Developer Tools

The conversion runs entirely in your browser — your JSON is never uploaded.