# JSON to CSV Converter

URL: https://phishdestroy.io/developer-tools/json-to-csv
Category: General dev
Where it runs: Runs locally (nothing you enter is uploaded)

Convert a JSON array of objects into CSV with one column per key, for example to review IOC or takedown records in a spreadsheet.

## Example input

Two IOC records

```
[{"domain":"login.example.com","ip":"192.0.2.10","status":"reported"},{"domain":"verify.example.net","ip":"198.51.100.7","status":"offline","note":"same kit, new domain"}]
```

Gives four columns (domain, ip, status, note). The first row leaves note empty because only the second object has it, and that note is quoted because it contains a comma.

## FAQ

### How are the columns chosen?

Every key that appears in any object becomes a column, in the order first seen. Missing values stay empty, and cells containing a comma, a double quote or a line break are quoted with inner quotes doubled, as in RFC 4180.

### What input does not work?

The top level must be an array, and a null item stops the conversion with an error. Nested objects are not flattened (they print as [object Object]) and arrays are joined with commas. Cells starting with =, +, - or @ are not escaped, so a spreadsheet may treat attacker-supplied values as formulas.

### Is my data uploaded?

No. The CSV is built in your browser and nothing is sent.

## Related tools

- [CSV to JSON Converter](https://phishdestroy.io/developer-tools/csv-to-json)
- [JSON Formatter](https://phishdestroy.io/developer-tools/json-formatter)
- [JSONPath Evaluator (Dot Notation)](https://phishdestroy.io/developer-tools/jsonpath-evaluator)
- [IOC Converter](https://phishdestroy.io/developer-tools/ioc-converter)
- [List Converter](https://phishdestroy.io/developer-tools/list-converter)

All tools: https://phishdestroy.io/developer-tools
