JSON to CSV Converter | Bidirectional Conversion

JSON ↔ CSV Converter

Convert between JSON arrays and CSV format with nested object support

The JSON ↔ CSV Converter is a bidirectional browser tool that converts JSON arrays to CSV with dot-notation header flattening and converts CSV back to a JSON array, supporting nested object paths like address.city.

JSON Input

 

CSV Output

 

Frequently Asked Questions

How do I convert a JSON array to CSV format online?

Paste a JSON array of objects into the JSON input area and click JSON → CSV. The tool uses the keys from the first object as column headers and writes each subsequent object as a CSV row. Nested objects are represented using dot notation (e.g., address.city becomes a header column). The CSV output appears in the lower text area and can be copied or further edited.

Is my JSON or CSV data sent to a server when converting?

No. The conversion runs entirely in your browser using JavaScript. Your data never leaves your device, making this tool safe to use with customer records, internal data exports, or any sensitive dataset.

How do I convert a CSV file back to JSON using this tool?

Paste your CSV content (with a header row) into the CSV Output text area and click CSV → JSON. The tool reads the first row as headers and produces an array of objects. Each subsequent row becomes one object with key-value pairs. If headers use dot notation, the tool reconstructs nested objects accordingly.

What happens to JSON fields with arrays or deeply nested objects during CSV conversion?

The converter flattens one level of object nesting using dot notation, but arrays within JSON objects are stringified as-is into the CSV cell value. Deep nesting beyond one level may also serialize as a JSON string rather than flattening further. If your data has arrays or deep nesting, flatten the JSON manually before converting, or filter to only the columns you need.

What CSV delimiter does this converter use?

The tool uses a comma as the default delimiter, consistent with the RFC 4180 CSV standard. If your data contains commas within values, those cells are automatically quoted. The tool does not currently support alternate delimiters like tab or semicolon, which are common in European locales. For TSV or semicolon-delimited files, pre-process the delimiter before pasting.