Skip to content

JSON Data Workflows

Convert Nested JSON to CSV or a Table

Choose CSV when you need a portable rectangular export; choose a table when you want to inspect, search, and sort records in the browser.

Last updated: October 24, 2026

JSON stores nested objects and arrays; CSV stores rows of fields. If your data is already a list of similar records, use JSON to CSV to make a downloadable spreadsheet-friendly file. To explore the same records before exporting, use theJSON Table Viewer to search, sort, and choose visible columns. Both tools process data in your browser.

From JSON structures to rows and columns

An object is a collection of named properties, an array is an ordered list, and a table is a rectangular set of rows sharing a column layout. An array of objects is often a natural starting point for a table, but JSON does not require every object to have the same keys.

[
  { "id": 101, "name": "Mira", "active": true, "profile": { "city": "Oslo" }, "tags": ["api", "docs"] },
  { "id": 102, "name": "Noah", "active": false, "profile": { "city": "Lima" } }
]

Here each object can become a row. The second record has no tags property, andprofile and tags are nested values rather than simple scalar fields. Decide whether to keep those values intact or reshape them for the consuming spreadsheet or data pipeline.

What the JSON to CSV converter does

The converter accepts a JSON array or a single JSON object. For object records it builds a header from the union of object keys, so fields present in only some records still get a column. A missing field produces an empty cell. Values such as strings, numbers, booleans, andnull become cell text; object and array values are serialized as compact JSON inside their cells rather than flattened into new columns.

Cells containing commas, quotes, or line breaks are quoted, with embedded quotes escaped. This preserves those cell values in ordinary CSV readers, but a nested JSON string is still one cell—not a set of relational columns. A top-level array of primitive values becomes a single-column output; a single object becomes a one-row table.

Example shape from the sample above: the header contains id, name,active, profile, and tags. The absent second-rowtags value is blank, while profile and the first row's tagsremain compact JSON text. Try the JSON to CSV converter and review the output before importing it into another system.

When the table viewer is more convenient

The JSON Table Viewer accepts an array or a single object. It finds columns from the union of object keys, so a missing value appears as an empty cell. Nested objects and arrays stay visible as compact JSON text in their cells; the viewer does not flatten them. Search checks all detected columns, while sorting and choosing which columns to show help focus on the fields you need. The viewer shows 50 rows per page and can copy or download filtered rows as JSON or CSV; exports include only currently visible columns.

Use CSV when another tool needs a file or a spreadsheet is the next step. Use the table when you want to inspect a response, locate records, compare field values, or hide irrelevant columns before export. You can also use the table viewer's CSV action directly after filtering.

Reshape nested data only when you need columns

If a report needs profile.city as its own column, transform the source structure before exporting—for example, map each record to a flat object with a city field. If you need to select a subset of deeply nested values, theJSONPath evaluator runs RFC 9535 JSONPath queries and returns matching values with their paths. For a path-key representation of nested values, seeFlatten JSON. Neither the CSV converter nor the table viewer automatically expands nested object properties into separate columns.

If your next task is a different format rather than a tabular export, theJSON to YAML converter translates valid JSON into YAML. If you need to inspect structural changes between two JSON documents, useJSON Diff; arrays there are compared by index, not by guessed item identity.