Developer Tools

JSON to CSV Converter

Live

Convert a JSON array of objects into downloadable CSV with detected columns and a table preview.

About JSON to CSV Converter

Turn JSON records into CSV rows without uploading the source data. The converter detects every unique top-level property across the object array, preserves first-seen column order, fills missing cells with empty values, and safely quotes fields containing commas, quotes, or line breaks. Review detected fields and the first rows in a table, switch to the raw CSV text, then copy or download the finished file.

Set up JSON to CSV Converter

Workspace

Source workbench

Edit the source fields below and inspect the rendered output alongside your work.

Complete the fields to prepare a result.

Paste valid JSON text. Use double-quoted property names and string values.

JSON to CSV Converter: csv

Choose the values that apply, then convert to csv.

Calculation method

Parse an object array, union top-level keys as columns, serialize each row in column order, and escape fields using doubled quotes.

How it works

The input must be a top-level JSON array whose items are objects. The converter unions their top-level keys into columns, then serializes each record in that column order. Every CSV field is quoted and internal quotes are doubled. Nested arrays and objects are preserved as JSON text inside one cell rather than expanded into multiple columns.

Examples

JSON to CSV Converter: Object array

Example input
{
    "json": "[{\"name\":\"Ada\",\"role\":\"engineer\"}]"
}
Expected result
{
    "csv": "\"name\",\"role\"\n\"Ada\",\"engineer\"",
    "row_count": 1,
    "columns": [
        "name",
        "role"
    ]
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Frequently asked questions

What JSON shape does the converter accept?

Use a top-level array of objects, such as [{"name":"Ada"},{"name":"Grace"}]. A single object, an array of primitive values, or mixed item types cannot form a consistent CSV table.

What happens when records have different properties?

All unique top-level property names become columns in first-seen order. If a record does not have one of those properties, its corresponding CSV cell is empty.

How are nested objects and arrays handled?

A nested object or array is serialized as JSON text inside a single quoted CSV field. The tool does not flatten nested property paths into separate columns.

Is downloaded CSV automatically safe to open in a spreadsheet?

Treat untrusted values carefully. Some spreadsheet applications interpret cells beginning with =, +, -, or @ as formulas. Review or sanitize external data before opening it in spreadsheet software.