CSV to JSON Converter
CSV to JSON Converter online: fast, private and free for everyday document work.
Flatten a JSON array of objects into a spreadsheet-ready CSV — the columns are the union of every key. Runs locally.
Your browser is preparing the tool. It runs 100% locally.
Paste a JSON array of objects and this returns CSV with one column per key and one row per object. It gathers the union of every key across all the objects, so even ragged data lines up, and it escapes any field containing a comma, quote or line break the RFC 4180 way. It handles flat objects; nested objects and arrays don't expand into columns.
Paste a JSON array (a single object works too — it gets wrapped) and the tool returns CSV whose header is every key it found, with one row per object and blanks where an object lacks a key. It opens on a small example, updates live, and offers copy or download as data.csv.
CSV opens in any spreadsheet and imports into almost everything, so this is the quickest way to get JSON or API output into Excel, Google Sheets or a reporting tool.
It parses the JSON, then scans across all the objects to build the complete set of column names — so an object missing a field still gets that column, left blank, and the rows always line up.
Each object becomes a row in that column order. Any value containing a comma, double quote or line break is wrapped in quotes with inner quotes doubled, exactly as RFC 4180 prescribes.
No external data. The input is parsed as JSON (RFC 8259 and ECMA-404) and the output is written as RFC 4180 CSV — entirely in your browser.
The JSON you paste is parsed in your browser; nothing is sent anywhere.
Nothing is stored — refresh and it's gone.
Safe for sensitive records, since the data never leaves your device.
| Input | JSON array of objects (or one object) |
|---|---|
| Output | CSV, comma-delimited |
| Columns | Union of all keys (first-seen order) |
| Missing keys | Empty cell |
| Escaping | RFC 4180 (inner quotes doubled) |
| Nesting | Not expanded — flat objects |
| Download | data.csv |
| Where it runs | In your browser, live |
Flat objects only. A nested object becomes the literal text [object Object], and an array becomes its comma-joined values inside one cell — neither expands into separate columns. Flatten nested JSON first (the JSON flattener does this) for clean columns.
Column order follows the order keys are first seen across the objects, not any alphabetical sort.
Values are written as-is, so numbers and booleans become their plain text form — which is normal for CSV, since CSV has no types.
If you'll open the result in Excel, note that Excel can re-type CSV values on open (stripping leading zeros, turning codes into dates). That's Excel's behaviour, not this tool's — import via Data → From Text/CSV as Text to avoid it.
Get API or app output into Excel or Google Sheets as rows and columns.
Prepare JSON data for a tool that ingests CSV rather than JSON.
Hand someone a readable table instead of a block of JSON.
Lay JSON records out as rows to compare them line by line.
Nested JSON? Flatten it first with the JSON flattener. Want a real spreadsheet file rather than CSV text? Use JSON to Excel. Worried about Excel re-typing the CSV? Import via Data → From Text/CSV as Text.
Builds columns from the union of all keys and escapes fields the RFC 4180 way — but it flattens only one level, so nested objects and arrays don't expand into columns.
CSV to JSON Converter online: fast, private and free for everyday document work.
Markdown to HTML in seconds — accurate, free and processed locally in your browser.
Convert with CSV to Excel Converter, preserving structure and data, with zero uploads.
Excel to CSV Converter online: fast, private and free for everyday document work.
Convert with Excel to JSON Converter, preserving structure and data, with zero uploads.
Convert with JSON to Excel Converter, preserving structure and data, with zero uploads.
It is free, private and runs entirely in your browser — no sign-up, no uploads, no limits.