loot.tools

JSON to CSV

Paste a JSON array and get clean CSV output with headers auto-detected from object keys. Handles nested values, quoted fields, and special characters.

Paste a JSON array of objects and get CSV output. Each object key becomes a column header.

JSON
CSV

How it works

Paste a JSON array of objects and the tool pulls every unique key to build the CSV header row. Each object becomes one row, with values matched to the right columns. Fields containing commas, quotes, or newlines get properly escaped so your CSV imports cleanly into Excel, Google Sheets, or any other spreadsheet app.

When you'd use this

Exporting API response data into a spreadsheet. Converting database query results for non-technical teammates. Preparing data for import into tools that only accept CSV. Quick data analysis - sometimes a spreadsheet is faster than writing code.

Tips for clean conversions

Flat objects convert best. Nested objects and arrays get stringified, which usually isn't what you want in a spreadsheet. If your JSON has deeply nested data, flatten it first. Consistent keys across objects produce the cleanest output - missing keys just get empty cells.

© 2026 loot.toolsYour data stays in your browser.