CSV ↔ JSON Converter
Two-way conversion between CSV and JSON. Correctly handles quoted fields, commas and line breaks inside cells. Everything runs locally — your data never leaves your device.
Runs locally in your browser
Input
Output
How to use CSV ↔ JSON Converter
- Paste CSV or JSON into the input box.
- Pick the direction: CSV → JSON or JSON → CSV.
- Copy the result or download it as a file.
Common use cases
- Turn a spreadsheet export into JSON for an API payload.
- Convert API responses into CSV for Excel or analysis.
- Handle quoted fields and embedded line breaks safely.
- Move seed data between scripts and spreadsheets.
Good to know
- JSON should be an array of objects to map cleanly to CSV rows.
- Nested objects are serialized rather than expanded into columns.
- CSV headers come from object keys; rename them afterward if needed.
What you can do next
FAQ
Is my data uploaded?
No. Conversion is plain JavaScript running in your browser. Nothing is sent anywhere.
What CSV features are supported?
Quoted fields, escaped quotes (""), commas and line breaks inside cells. The first row is used as the JSON keys.
What JSON shape is needed for JSON → CSV?
An array of flat objects, e.g. [{"name":"Ada","age":36}]. Keys are unioned across all objects to build the header row.