DoneInTab
🛡️ Zero Server Uploads · 100% Client-Side

JSON to CSV Converter

Convert JSON arrays into clean, standardized CSV files directly in your browser. Flatten nested objects, choose delimiters, select specific fields, and download with 100% data privacy.

1. Input JSON Data

Upload a .json file or paste a JSON array of objects below.

Drop JSON file here, or click to browse

Supports JSON files up to 20MB. Processed 100% locally in browser memory.

100% Client-Side Privacy Guarantee

Your files are processed directly on your device using WebAssembly / JavaScript. No document bytes are ever uploaded to any server or cloud storage.

How Our In-Browser JSON to CSV Engine Works

Converting hierarchical JSON data structures into flat 2D tabular spreadsheets requires handling three core technical challenges: key discovery across heterogeneous records, nested object flattening, and spreadsheet formula security.

1. Key Union Discovery

Real-world JSON feeds often have records with differing fields. Our engine scans all records to discover the complete union of keys, ensuring no field is omitted from your CSV export.

2. Recursive Flattening

Nested properties like "user": { "city": "NYC" } are automatically converted to "user.city" columns for seamless Excel and SQL imports.

3. Formula Protection

When enabled, cells starting with formula triggers like =, +, or - are prefixed with an apostrophe to prevent OWASP spreadsheet injection attacks.

Need to convert spreadsheets back into JSON or preserve leading zeros? Check out our CSV to JSON Converter and our comprehensive Technical Guide to CSV & Excel Standards.

Frequently Asked Questions

What JSON structure does this converter require?
The tool works best with an array of objects (e.g. [{"id": 1, "name": "Alice"}, {"id": 2, "name": "Bob"}]). It also supports single root objects by converting them into a 1-row table. Primitive values or arrays of simple numbers/strings are rejected with helpful guidance.
How are nested objects and arrays handled?
When 'Flatten nested objects' is enabled, nested properties are flattened using dot-notation (e.g. user.address.city). When disabled, nested objects and arrays are deterministically serialized as compact JSON strings inside their CSV cells so no information is lost.
What happens if objects in the array have different fields (heterogeneous JSON)?
The converter scans all objects across the dataset and creates a unified column list containing every unique key. If an object is missing a particular field, an empty cell is generated cleanly without shifting column alignment.
Can I choose which columns to export?
Yes. Once your JSON is parsed, the tool displays a column checklist. You can toggle individual fields on or off, or use 'Select All' and 'Deselect All' shortcuts before exporting your CSV.
Is my JSON data uploaded to any server?
No. All parsing, key extraction, flattening, and CSV generation occur 100% locally in your web browser. Your data never touches any remote server or external API.