CSV ↔ JSON Converter
Paste CSV data to convert it to a JSON array of objects using the header row as keys, or convert a JSON array back to CSV. Handles quoted fields, commas in values, and custom delimiters. Ideal for test data, data migration, and API testing.
Converted data will appear here.
Features
- CSV → JSON: uses the first row as object keys
- JSON → CSV: flattens an array of objects to CSV rows
- Handles quoted fields and commas inside values
- Custom delimiter support (comma, semicolon, tab)
- Download as file or copy to clipboard
Frequently Asked Questions
What CSV formats are supported?
The converter supports standard RFC 4180 CSV including quoted fields that contain commas, newlines, or double quotes. You can also switch the delimiter to semicolon or tab for TSV files.
What JSON structure is expected for JSON → CSV?
The input should be a JSON array of objects where every object has the same keys. The keys become the CSV header row and each object becomes a data row.
Can I use this for test data?
Yes. A common workflow is to prepare test cases in a spreadsheet, export as CSV, and convert to JSON for use in API tests or Jest/Playwright test fixtures.