0 characters
0 rows

How to Use

1
Paste your JSON. Drop a JSON array of objects into the JSON Input box. A single object works too and becomes a one row table.
2
Convert. The CSV updates automatically as you type, or click Convert to CSV to run it on demand.
3
Check the output. The header row lists every key found across your objects. Nested keys appear in dot notation, for example address.city.
4
Copy or download. Click Copy Result to copy the CSV, or Download CSV to save it as data.csv for Excel or Google Sheets.

How JSON to CSV Conversion Works

A CSV file is a flat table: the first line holds column names and every line after that is one record, with values separated by commas. JSON is hierarchical and can nest objects inside objects. To bridge the two, the converter reads every object in your array, collects the union of all keys to form the header, and flattens nested objects into dot notation columns so each value lands in its own cell.

Values that contain a comma, a double quote, or a line break are wrapped in double quotes, and any double quotes inside a value are doubled. This is the standard CSV escaping that spreadsheets expect, so the file opens cleanly in Excel and Google Sheets.

Worked Example

JSON input: [ {"name": "Alice", "address": {"city": "Tokyo"}}, {"name": "Bob", "note": "likes a, b"} ] CSV output: name,address.city,note Alice,Tokyo, Bob,,"likes a, b"

Frequently Asked Questions

What JSON shape does this converter support?

The converter works best with a JSON array of objects, where each object represents one row. The tool reads the keys of every object to build the CSV header, then writes one row per object. A single object on its own is also accepted and is treated as a one row table.

How are nested objects handled?

Nested objects are flattened using dot notation. For example, a field like address with a nested city value becomes a column named address.city in the CSV. This keeps every value in its own column so the data stays flat and readable in a spreadsheet.

Can I convert a single JSON object?

Yes. If you paste a single JSON object instead of an array, the tool automatically wraps it in an array and produces a CSV with one header row and one data row. You do not need to add the surrounding square brackets yourself.

Is my JSON data uploaded to a server?

No. The entire conversion runs in your browser using JavaScript. Your JSON never leaves your device and nothing is sent to any server, so it is safe to use with private or sensitive data.

Can I open the CSV in Excel or Google Sheets?

Yes. The output is standard comma separated CSV with values quoted when they contain commas, quotes, or line breaks. You can copy the result or download it as data.csv and open it directly in Excel, Google Sheets, or any spreadsheet program.

Get fresh reads straight to your inbox

Get notified when we publish new articles. Unsubscribe anytime.