JSON ↔ CSV Converter

Convert JSON arrays to CSV or CSV to JSON. Useful for data migration, API development, and quick format transformations. Runs entirely in your browser.

Expected Formats

JSON → CSV

Input must be a JSON array of objects with consistent keys:

[
  {"name": "Alice", "email": "alice@example.com", "score": 95},
  {"name": "Bob", "email": "bob@example.com", "score": 87}
]

The keys of the first object become CSV column headers.

CSV → JSON

Input should be comma-separated with a header row:

name,email,score
Alice,alice@example.com,95
Bob,bob@example.com,87

Each data row becomes a JSON object with header names as keys.

FAQ

What about nested JSON objects?

Nested objects are converted to their string representation in the CSV. For flat data, the conversion works perfectly. Deeply nested structures may need manual flattening.

Can I use this for large datasets?

Yes, any size that fits in your browser's memory. Thousands of rows work fine. For very large datasets (100,000+ rows), performance depends on your device.

Are all values treated as strings in CSV → JSON?

Currently yes. Values are stored as strings in the JSON output. If you need typed values, post-process the JSON to parse numbers and booleans.

Related Tools