Skip to content
LocalTools

JSON to CSV Converter

Paste a JSON array of objects and get CSV back, with a header row built from the object keys. Values containing commas, quotes or newlines are escaped correctly, and it all runs in your browser.

Loading the tool…

How to convert JSON to CSV

  1. 1

    Paste your JSON

    Drop in a JSON array of objects (or a single object). It’s parsed right in your browser.

  2. 2

    Get CSV instantly

    The keys become the header row and each object becomes a line, with commas, quotes and newlines in values safely escaped.

  3. 3

    Copy or save

    Copy the CSV and paste it into Excel, Google Sheets or a database import. Nothing leaves your device.

Why use JSON to CSV Converter?

Safe escaping

Values with commas, double quotes or line breaks are wrapped and escaped so the CSV opens correctly in any spreadsheet.

Union of keys

Objects that don’t all share the same keys still work — the header is the union of every key, with blanks where a row has none.

100% private

Everything runs locally in your browser with JavaScript. Your input is never uploaded, stored or seen by anyone — it even works offline once the page has loaded.

Works on any device

No install and no account. Runs in any modern browser on Windows, macOS, Linux, Android or iPhone.

From API response to spreadsheet

JSON is what APIs speak; spreadsheets are where people actually eyeball data. Paste an API response here and the object keys become the header row, every object becomes a line, and the result opens directly in Excel, Google Sheets or Numbers. Objects with different keys still work — the header is the union of every key seen, with empty cells where a row has no value.

What happens to nested data

CSV is a flat format, so flat objects map cleanly — strings, numbers and booleans become plain cells. A value that is itself an object or array is kept as JSON text inside its cell rather than dropped, so no data is lost; if you want real columns from nested fields, flatten them first (for example map user.address.city to a top-level city field).

Frequently asked questions

What JSON shape does it expect?

A JSON array of objects, where each object becomes a row. A single object is treated as a one-row table. The CSV header is taken from the object keys.

Is my data uploaded to a server?

No. The tool runs entirely in your browser, so whatever you paste stays on your device. It’s safe for tokens, secrets and confidential data, and works offline once loaded.

Can I open the result in Excel?

Yes. The output is standard comma-separated values with a header row and proper quoting, so it pastes or imports straight into Excel, Google Sheets or Numbers.

Related tools