Skip to main content
ToolsHub

JSON to CSV Converter

Paste a JSON array and instantly get a CSV file. Control delimiter, headers, and nested object handling. Also converts CSV back to JSON.

Updated

Files never leave your browser
Files never leave your browser

CSV output will appear here

Paste a JSON array of objects on the left to generate CSV.

How to use JSON to CSV Converter

The JSON to CSV Converter transforms JSON arrays of objects into comma-separated values files that can be opened directly in Excel, Google Sheets or any data-analysis tool. It automatically infers column headers from object keys, handles nested properties via dot-notation flattening, and lets you customise the delimiter, quote character and line endings — making it the fastest way to get JSON API data into a spreadsheet.

  1. Paste your JSON array (an array of objects) into the input field, or upload a .json file.
  2. The tool inspects the first object to infer column headers — review and reorder them in the column picker.
  3. Choose your output delimiter: comma (CSV), tab (TSV), semicolon or pipe.
  4. Select line endings: CRLF (Windows) or LF (Unix/Mac).
  5. Toggle whether to include the header row and whether to quote all fields or only fields containing the delimiter.
  6. Click Convert and download the .csv file or copy the output.

Your data never leaves your device — 100% private processing.

Handling nested JSON objects

Real-world API responses often contain nested objects and arrays. The converter flattens one level of nesting by joining parent and child keys with a dot: {"user": {"name": "Alice"}} becomes the column user.name. Arrays within objects are serialised as JSON strings in a single cell, preserving the data while maintaining the flat structure required by CSV. For deeply nested data, consider restructuring the JSON before converting or using a dedicated ETL tool.

CSV format variations and gotchas

Despite the name, "comma-separated values" files do not always use commas. European locales where commas serve as decimal separators typically use semicolons instead. RFC 4180 defines a minimal CSV standard but is not universally observed — some tools expect double-quotes only around fields containing the delimiter, while others quote all fields. Field values containing newlines must be quoted, and embedded quotes are escaped by doubling them ("He said ""hello""."). Choosing the right dialect for your target application avoids import errors.

Common CSV dialects
DialectDelimiterQuote charCommon use
RFC 4180 CSV,"Excel (US), Google Sheets
TSVTabNoneUnix tools, R, Python pandas
Semicolon CSV;"Excel (European locales)
Pipe-delimited|"Database exports, EDI

Worked examples

Array of objects to CSV

Inputs: [{"id":1,"name":"Al"},{"id":2,"name":"Bo"}]

Result: header id,name then rows 1,Al and 2,Bo

Value with comma is quoted

Inputs: {"city":"Paris, FR"}

Result: cell becomes "Paris, FR" (wrapped in quotes)

Nested object flattened

Inputs: {"user":{"name":"Al"}}

Result: column user.name = Al

Glossary

CSV
Comma-Separated Values — a plain-text format representing tabular data with one record per line.
TSV
Tab-Separated Values — a CSV variant using tab characters as delimiters, common in data science.
Flattening
Converting nested JSON objects into a flat key-value structure by joining key names with a separator.
RFC 4180
An informational IETF memo defining the most common CSV format with double-quote field enclosure.
Delimiter
The character (comma, tab, semicolon, pipe) used to separate fields within a CSV record.

Related reading

Free · No spam

Get weekly tool tips & updates

New tools, power-user tips, and productivity hacks — delivered free every Friday.

No spam, ever. Unsubscribe with one click.

Related Developer Tools

Explore all Developer Tools.