Convert JSON Array to CSV

Turn arrays of JSON objects, nested lists, array of arrays, or primitive values into clean tabular CSV columns with auto-root detection.

COL_ACOL_BCOL_CCOL_D12345
JSON

Paste JSON directly, or click below to upload

Convert JSON array to CSV for any array structure

Convert JSON array to CSV regardless of whether your input is an array of objects, an array of primitives, or a multidimensional matrix. JSON arrays are the foundational data structure for lists, database queries, and API exports. mommyfile recognizes every array variant and formats it into clean, rectangular spreadsheet rows.

Auto-Root Detection

If your array is wrapped inside an outer metadata envelope like {"status": 200, "data": [...]}, mommyfile automatically detects the inner array and converts it into rows.

How to convert a JSON array to CSV

Transform any array format into spreadsheet columns with these simple steps:

Paste your JSON array

Paste raw JSON array text starting with [ into the input area or upload an array data file.

Verify detected array shape

Check the preview table to confirm whether your array was detected as a list of records, primitive values, or a coordinate matrix.

Export your spreadsheet

Copy the generated CSV directly or click Download CSV to save the file to your device.

Handling the three core array shapes: objects, primitives, and 2D matrices

Different programming patterns produce different array layouts. mommyfile handles all three major shapes intelligently:

  1. Array of Objects (Standard Records): [{"id": 1, "name": "Apple"}, {"id": 2, "name": "Orange"}] The keys become column headers (id, name) and each object forms one row.
  2. Array of Primitives (Simple Lists): ["Red", "Green", "Blue", "Yellow"] Primitives cannot provide object keys, so mommyfile assigns a clean default column header named value, placing each entry on a separate row.
  3. Array of Arrays (2D Matrix): [["Timestamp", "Reading"], [1700000000, 42.5], [1700000060, 43.1]] The first row can serve as headers, or columns are labeled with numeric indices (0, 1, 2), reproducing clean grid coordinates.

Automatic array root detection and extraction

Often, API responses do not start with a top-level array. Instead, they provide an outer JSON envelope containing pagination details, error codes, and a nested array property:

{
  "total": 150,
  "page": 1,
  "records": [
    {"id": 1, "item": "Widget A"}
  ]
}

When mommyfile encounters this pattern, it automatically locates the first major array property (records) and extracts it into tabular rows, eliminating the need to manually delete the outer envelope.

Input JSON
Output CSV

Frequently asked questions

Last updated: 2026-11-29

How does the converter handle an array of primitive strings or numbers?

Arrays of primitives (strings, numbers, booleans) are automatically structured into a single column named "value", with each element occupying one row.

What happens when converting an array of arrays (2D matrix)?

Each inner array becomes a row, with columns labeled by their numeric index (0, 1, 2) unless explicit headers are provided.

Can the converter extract an array nested deep inside an object?

Yes. If your array is located at data.results or items, enter that path in the Root path field under Conversion Options to target it directly.

How are objects with varying keys inside an array aligned?

mommyfile compiles a master list of all unique keys across every object in the array, ensuring each row aligns data under the correct column header.

What delimiter is used when outputting an array to CSV?

Standard RFC 4180 commas are used by default, but you can switch to semicolons, tabs, or pipes in the Options drawer.

Related converters