JSON to CSV Converter: Object array
{
"json": "[{\"name\":\"Ada\",\"role\":\"engineer\"}]"
}
{
"csv": "\"name\",\"role\"\n\"Ada\",\"engineer\"",
"row_count": 1,
"columns": [
"name",
"role"
]
}
Developer Tools
Convert a JSON array of objects into downloadable CSV with detected columns and a table preview.
Published Last reviewed
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.
Workspace
Edit the source fields below and inspect the rendered output alongside your work.
Complete the fields to prepare a result.
Choose the values that apply, then convert to csv.
Parse an object array, union top-level keys as columns, serialize each row in column order, and escape fields using doubled quotes.
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.
{
"json": "[{\"name\":\"Ada\",\"role\":\"engineer\"}]"
}
{
"csv": "\"name\",\"role\"\n\"Ada\",\"engineer\"",
"row_count": 1,
"columns": [
"name",
"role"
]
}
This tool does not store your inputs or results on UtilityPages.org.
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.
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.
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.
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.