JSON to CSV Converter

Convert JSON data to CSV format. Paste JSON or upload a file and get a downloadable CSV.

📄 Drop a .json file here, or

What This Tool Does

Converts JSON arrays to CSV format in your browser — handles flat arrays, nested objects (flattened to dot-notation columns), and arrays of objects. No upload, no server processing.

Who This Is For

  • Data analysts who receive JSON API responses and need to open them in Excel or Google Sheets
  • Developers exporting structured data from a NoSQL database for reporting
  • Business users who need to turn an API response into a spreadsheet without writing code
  • QA engineers converting test fixture JSON into CSV for data-driven test frameworks

Example: Input: A JSON array of 500 objects with fields like {"id": 1, "name": "Alice", "email": "..."} → Output: A CSV with headers id,name,email and one row per object, ready to open in any spreadsheet app


💡 If you need the reverse operation — importing a CSV into a JSON structure — use the CSV to JSON converter. For working with the JSON before converting, the JSON Formatter makes it readable and validates syntax. Need to share the resulting spreadsheet as a fixed-layout document? Try Excel to PDF.

Related Guides & Tutorials

Handling Nested JSON in CSV Export

Flat JSON arrays convert to CSV straightforwardly — each object becomes a row, each key becomes a column header. Nested JSON requires a strategy choice:

The right approach depends on how the CSV will be used. For spreadsheet analysis, flattening is usually best. For importing into another system, check what format that system expects.

CSV Delimiter Options: Comma, Tab, Semicolon

CSV stands for "comma-separated values" but the actual separator varies by locale and use case:

DelimiterUse CaseNotes
Comma (,)Default, international standardAvoid when values contain commas (addresses, descriptions)
Semicolon (;)European locale defaultExcel in Germany/France defaults to semicolons due to comma as decimal separator
Tab (\t)TSV format, database exportsBest when values may contain commas or quotes; clean to import
Pipe (|)Legacy data formatsUsed in some database dumps and EDI formats

Data Export and Analysis Tools

JSON to CSV opens up spreadsheet analysis — pair it with these tools:

Frequently Asked Questions

What JSON structure is required for CSV conversion?
The input must be a JSON array of objects — [{}, {}, {}]. Each object becomes a CSV row. Nested objects within each item can be flattened (with configurable key separators) or left as JSON strings in a single column.
How are nested objects handled?
By default, nested objects are flattened using dot notation: {"user": {"name": "Alice"}} becomes a column named user.name. Very deeply nested structures may produce many columns — consider restructuring the JSON before converting if the output is unwieldy.
What delimiter does the CSV use?
Comma is the default delimiter. A tab-delimited option is available for TSV output, which avoids issues with values that naturally contain commas.
How are values with commas or quotes handled?
Values containing commas, quotes, or newlines are automatically wrapped in double quotes per RFC 4180. Double quotes within values are escaped by doubling them.
Can I convert a JSON object (not an array) to CSV?
CSV requires tabular data — rows and columns. A single JSON object becomes a one-row CSV. If the object contains arrays, try extracting the array first and converting that.
Why are my numbers appearing as text in Excel?
CSV is a text format — all values are strings. Excel may interpret them as text rather than numbers. To convert: select the column in Excel, use Data → Text to Columns, and set the column format to General or Number.
Can I upload a JSON file?
Paste the JSON content directly into the text area.

How It Works

1
Paste your JSONPaste a JSON array into the input field. Each object in the array becomes a CSV row.
2
Configure optionsChoose whether to include headers, handle nested objects, and set the output delimiter.
3
Download the CSVThe CSV is generated in JavaScript in your browser. Copy to clipboard or download as a .csv file.

When to Use This Tool

  • Exporting API response data to Excel or Google Sheets for analysis
  • Sharing structured JSON data with non-technical stakeholders who work in spreadsheets
  • Converting a JSON data export from a database or API into a format for reporting tools
  • Preparing JSON data for import into a system that only accepts CSV

🔒 Privacy & Security

JSON is parsed and converted to CSV entirely in your browser's JavaScript engine. No JSON data is uploaded. For JSON containing user data, API keys, or business data, local processing prevents any exposure.

You Might Also Need

CSV to JSON →JSON Formatter →JSON Validator →

Related Tools