json-tools .ru

JSON to CSV

Builds a CSV table from a JSON object or array of objects — for example, an API response with a list of users or orders.

How columns are built

For an array of objects, the CSV header row is the union of every object's keys in the order they first appear. A nested object like address: {city: ...} becomes a column named address.city instead of staying a nested structure.

What doesn't fit in a cell

Unlike nested objects, nested arrays are not split into separate columns — they stay as a JSON string inside the cell so no data is lost. If the JSON is a single object rather than an array, the result is a one-row CSV table.

Format
JSON → CSV
Source text Paste text or upload a file
Result Type is not detected yet
Statistics appear after formatting