JSON to CSV Converter
Turn a JSON array into CSV instantly.
APIs speak JSON; spreadsheets speak CSV. This bridges the two for analysts and developers.
Related tools: List to CSV Converter
Open a JSON file instead of pasting
Have the JSON in a file? Open it here and it is loaded into the JSON box above, ready for the Convert to CSV button — exactly as if you had pasted it.
The file is read on this device only. It is never uploaded and never put into the page URL.
More data-format tools
Working the other direction, or starting from YAML? The data-format group on this site also includes the CSV to JSON Converter and the YAML to JSON Converter.
How to use
- Paste a JSON array of objects.
- Click Convert — CSV appears below.
- Copy it or download the .csv file.
About this tool
Example: given two objects — one with name "Ada, A." plus a note, one with only the name Bo — the output is a header row (name,note), a row where the name is wrapped in quotes because it contains a comma (any quotes inside a value are doubled), and a row with an empty note cell where that key is missing.
Nested objects are flattened into dot-path columns — {"user":{"name":"Ada"}} becomes a user.name column. Arrays are kept as JSON text inside the cell.
Your data never leaves your browser.
Pasting works until the JSON lives in a downloads folder as export.json. The open-file section removes that detour: the file is read locally and dropped into the same input the paste flow uses, so every existing behaviour — flattening, collision warnings, copy and download — applies unchanged. The large-file notice appears past about 5 MB, the size where in-browser parsing of a single array starts to feel slow on modest hardware, and the data-format links point at the reverse converters so a round trip (JSON to CSV here, CSV back to JSON there) never leaves the site.
How it works
CSV (RFC 4180) is rows of comma-separated values — one record per line, usually with a header row. Converting a JSON array of objects means collecting every unique key as a column header, then writing one row per object with each column looked up in turn.
Two quoting rules handle awkward values: a field containing a comma, quote, or newline gets wrapped in double quotes, and a literal double quote inside a field is doubled. So the value Say "hi" becomes "Say ""hi""" — ugly to read, unambiguous to parse.
Nested objects are flattened into dot-path columns, so {"user":{"name":"Ada"}} gains a user.name column. Arrays cannot be split into columns, so they are stored in the cell as compact JSON text.
Worked examples
API response into a spreadsheet: Your endpoint returns [{"name":"Ada","email":"[email protected]"},{"name":"Bo","email":"[email protected]"}]. Convert it and paste straight into Google Sheets — the keys become the header row automatically.
Values containing commas: [{"city":"Paris, France"}] converts with the city wrapped in quotes, so the comma does not split it into a phantom extra column.
Quick reference
| JSON value | CSV cell |
|---|---|
| simple | simple |
| has, comma | "has, comma" |
| say "hi" | "say ""hi""" |
| true / 42 / null | true / 42 / (empty) |
Frequently asked questions
What if objects have different keys?
All unique keys become columns; missing values stay empty.
What happens to nested objects?
They are flattened into dot-path columns such as user.address.city; arrays are stored as JSON text in the cell.
How are commas in values handled?
Values containing commas, quotes or newlines are properly quoted per CSV rules.
Is my data uploaded?
No — 100% local.
Can I load JSON from a file instead of pasting it?
Yes — use the Open a JSON file section below the converter. The file is read in your browser and placed into the same JSON box the paste flow uses, so conversion, copy and download behave identically either way.
What happens with a JSON file larger than 5 MB?
It still loads and converts, but the page shows a large-file notice first: multi-megabyte arrays can take a few seconds to parse and flatten, and the resulting CSV is held in memory. Splitting the export into smaller arrays is faster and gentler on the browser.
How do I convert CSV or YAML into JSON?
Use the sibling tools in the data-format group: the CSV to JSON Converter for spreadsheets and CSV exports, and the YAML to JSON Converter for YAML configuration files. Links to both are in the section below the converter.
First time embedding? Read the step-by-step guide →
More free tools
SKU Reconciliation
Compare two spreadsheets by SKU — rows only in one file, quantity and price differences, in one downloadable table.
CSV to JSON Converter
Convert CSV to a JSON array — proper quoted-field parsing, delimiter and header options, files processed locally, never uploaded.
YAML to JSON Converter
Convert YAML to JSON and JSON back to YAML — properly parsed, both directions.
List to CSV Converter
Turn any pasted list into a clean, downloadable CSV file.
Base64 Encode / Decode
Encode text to Base64 or decode it back.
Color Converter (HEX ↔ RGB)
Convert HEX to RGB and back, with live preview.