Developer Tools

JSON to CSV Converter

Convert an array of JSON objects into CSV, with correct escaping, entirely in your browser.

JSON to CSV Converter Tool

Convert JSON to CSV

How to Use This Tool

  1. Paste a JSON array of objects into the input box, or click "Load Sample" to try an example.
  2. Click "Convert to CSV."
  3. Copy the result, or click "Download CSV" to save it as a file.

Example

Input:

[
  {"name": "John", "age": 30, "city": "London"},
  {"name": "Jane", "age": 25, "city": "New York"}
]

Output CSV:

name,age,city
John,30,London
Jane,25,New York

Different Keys Across Objects

If one object is missing a property another has, the column is still included, left blank for that row:

Input: [{"name":"John","age":30},{"name":"Jane","city":"London"}]

Columns: name, age, city
name,age,city
John,30,
Jane,,London

Frequently Asked Questions

What JSON format does this expect?

An array of objects, where each object becomes one CSV row -- for example [{"name":"John","age":30},{"name":"Jane","age":25}]. An array of arrays is also supported (each inner array becomes one row with no header row).

What happens if objects have different properties?

The CSV columns are the union of every property found across every object, not just the first one -- so an object with an extra field later in the array still gets its own column, with earlier rows simply left blank in that column.

How are commas, quotes, and line breaks inside values handled?

Following standard CSV rules: a value containing a comma, a double quote, or a line break is wrapped in double quotes, with any double quote inside it doubled ("") -- so the result opens correctly in Excel, Google Sheets, or any other spreadsheet application.

What happens to a nested object or array value?

It's converted to a JSON string and placed in that cell (e.g. {"city":"London"}), rather than being silently dropped or flattened into separate columns -- so no data is ever lost, even though it stays in JSON form inside that one cell.

What if my JSON is a single object instead of an array?

You'll get a clear error -- this tool expects the top level to be an array. Wrap a single object in square brackets ([ ]) to convert it as a one-row CSV.

Is my data uploaded anywhere?

No. Every conversion happens locally in your browser using JavaScript. Nothing you paste here is sent to Brekzy or stored anywhere.

Find More Useful Tools

Explore Brekzy's growing collection of free calculators, converters, AI tools, and practical resources.