JSON to CSV Converter

Local only

Convert JSON objects and arrays to CSV, flatten nested fields, and download the result locally.

94 chars · 4 lines

53 chars · 3 lines

2 rows3 columnsNested objects flattened

JSON conversion guide

How to convert JSON to CSV

Paste a JSON object or an array of objects into the converter above. VetaTool discovers the available fields, flattens nested objects, escapes CSV values correctly, and produces a downloadable file without sending the source data to a server.

Steps

  1. Paste JSON or import a .json file.
  2. Choose comma, semicolon, or tab as the delimiter.
  3. Keep the header enabled unless another system expects data rows only.
  4. Review the generated columns, then copy or download the CSV output.

How nested JSON is handled

Nested objects become dot-separated column names. For example, a name inside user becomes user.name, while user.address.city becomes its own column.

This keeps one CSV row for each top-level JSON object and makes deeply nested data usable in spreadsheets and import tools.

Arrays, missing fields, and null values

Array values are serialized as JSON inside a single CSV cell. Fields that only appear in some records are still included as columns, with empty cells where the field is missing.

  • JSON null values become empty cells.
  • Numbers and booleans keep their readable values.
  • Empty objects and arrays remain valid JSON text inside a cell.

CSV escaping rules

Values containing the selected delimiter, a double quote, or a line break are wrapped in double quotes. Existing double quotes are doubled according to standard CSV escaping rules.

JSON to CSV example

A nested user object becomes separate user.name and user.active columns, while the tags array remains JSON inside one CSV cell.

JSON input

[
  {
    "id": 1,
    "user": { "name": "Ada", "active": true },
    "tags": ["json", "csv"]
  }
]

CSV output

id,user.name,user.active,tags
1,Ada,true,"[""json"",""csv""]"

Common questions

Frequently asked questions

Does this JSON to CSV converter upload my data?

No. Conversion happens in your browser, so pasted JSON and imported files are not sent to a VetaTool backend.

Can it convert nested JSON to CSV?

Yes. Nested object keys are flattened with dot notation, such as user.name and user.address.city.

How are JSON arrays stored in CSV cells?

Array values are kept as JSON text inside one correctly escaped CSV cell, which avoids duplicating parent rows or creating unexpected combinations.

What happens when objects have different fields?

The converter builds a union of every field it finds. Missing values are emitted as empty CSV cells.