# JSON to CSV

Flatten a JSON array of objects into CSV.

## URL

https://ilham.dev/tools/json-to-csv/

## What It Does

Flatten an array of JSON objects into CSV, using the union of the keys as the header row. It is the usual way to get an API response into a spreadsheet.

## Features

- Runs in the browser
- No login required

## Input

text input.

## Output

text output.

## Privacy

Processing happens locally in the browser.

No input data is uploaded to ilham.dev.

- Requires login: false
- Requires API key: false
- Stores user data: false


## Examples

- What happens to nested objects?
- Why are some cells empty?




## Questions

### What happens to nested objects?

This tool does **not** create dotted columns. It writes a nested object or array as JSON text in one CSV cell, with quotes escaped when needed. Decide how to handle that cell in the receiving program.

### Why are some cells empty?

Because not every object has every key. The header is the union of all keys, so an object missing one simply leaves that cell blank.

