Convert CSV to JSON (and JSON to CSV)
Turn spreadsheet exports into JSON arrays using the header row as keys — or convert a JSON array back into CSV.
How to use the CSV to JSON tool
- 1Paste CSV with a header row, or a JSON array of objects.
- 2Click convert — the direction is detected automatically.
- 3Copy or download the result.
Good to know
- Your data is processed in your browser and never uploaded.
- Quoted fields can contain commas, quotes and line breaks.
- Also available as a REST API for automated pipelines.
Frequently asked questions
Does the first row have to be headers?
Yes. The first row supplies the keys for each JSON object.
How do I convert an Excel file to JSON?
In Excel or Google Sheets, save or download the sheet as CSV, then paste it here.
Can I automate this?
Yes. The EasyToConvert API has a csv-to-json endpoint; see the API documentation.
Related tools
JSON FormatterFormat, validate and minify JSON instantly. Paste JSON to pretty-print it with indentation or compress it. Free and private — nothing is uploaded.PDF to ExcelExtract tables from PDF files into an Excel spreadsheet (.xlsx) with columns and headers detected automatically. Free and runs in your browser.JSON to YAMLConvert JSON to YAML and YAML to JSON for Kubernetes, Docker Compose and CI config files. Free, private and runs in your browser.