Convert CSV to JSON or JSON to CSV
Paste CSV rows (first row as headers) to get a clean JSON array of objects, or paste a JSON array of objects to get back CSV rows. The parser correctly handles quoted fields containing commas, quotes and line breaks, so real-world exports from Excel or Google Sheets convert cleanly.
How to use it
- Choose CSV → JSON or JSON → CSV.
- Paste your data into the input box.
- Press Convert, then copy the result.
Why convert between CSV and JSON
CSV is the universal export format for spreadsheets, but most APIs and JavaScript code work with JSON. Converting a spreadsheet export to JSON makes it ready to use in code; converting JSON data back to CSV makes it easy to open and review in Excel or Google Sheets.
Common uses
- Turning a spreadsheet export into JSON for an API or app
- Converting API response data into a CSV for a spreadsheet
- Quickly inspecting tabular data in a different format
- Preparing sample data for testing
Frequently asked questions
What CSV format is expected?
Standard comma-separated values with the first row as headers. Quoted fields containing commas or quotes are handled correctly.
What JSON format is expected for JSON to CSV?
A JSON array of flat objects, e.g. [{"name":"Ali","age":25}]. Nested objects/arrays inside fields are not flattened.
Is my data uploaded anywhere?
No, all conversion happens locally in your browser.