JSON to CSV
Convert a JSON array of objects (or an array of arrays) into delimiter-separated text. Keys are unioned across every row, nested objects can be flattened to dotted columns, and fields are quoted per RFC 4180. Runs on your device.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
From a JSON array to delimited rows
Paste an array of objects or an array of arrays and the tool emits delimiter-separated text. For objects the column set is the union of keys across every row in first-seen order, so a row missing a key simply gets an empty cell. The result downloads as data.csv.
Feeding a spreadsheet from an API
When an API hands back a list of records and a colleague wants it in Excel, paste the JSON here and take the CSV straight into the spreadsheet. Values containing the delimiter, a quote or a line break are wrapped in quotes with inner quotes doubled.
Flatten and header switches
Flatten, on by default, turns nested objects into dotted column names such as user.name; switch it off to keep the whole nested object as a JSON string in one cell. The header toggle writes or omits the key row, and the delimiter box chooses comma, semicolon, tab or pipe.
What the converter refuses
A row that is a string, number or null is an error once the first element is an object. If the first element is an array instead, every row must be an array and the header and flatten settings are ignored. An empty array produces empty output.
No data leaves the browser
Parsing and escaping happen entirely in the page. The JSON you paste is never uploaded, so records with personal fields can be converted without a trip through a server.
Questions
How are columns chosen?
The tool takes the union of keys across all rows, in first-seen order, so rows with missing keys get an empty cell.
When are fields quoted?
Only when a value contains the delimiter, a double quote, or a line break. Embedded quotes are doubled, per RFC 4180.
What if a row is not an object?
A row that is a string, number, or null raises an error. Use an array of arrays if you want positional columns.
Related tools
See categoryCSV to JSON
Parse CSV (RFC 4180) into a JSON array, with delimiter sniffing and type inference.
JSON to YAML
Convert JSON to YAML on your device, with a 2- or 4-space indent.
YAML to JSON
Convert YAML to JSON locally, with indent choice and optional key sorting.
.env <-> JSON
Parse a .env file into JSON, or turn a JSON object into .env text. Runs entirely on your device.