CSV to JSON Converter
Convert a CSV file or pasted spreadsheet data into a JSON array for an app, script or API. Each row becomes an object, and the first row supplies the field names.
Once converted, you can rename or move JSON fields to match the structure another system expects.
- Use it when
- You have a spreadsheet export and need JSON records for an app or script.
- Keep in mind
- The first row needs unique column names. Cell values stay as text, so IDs keep their leading zeroes.
id
0042[{"id":"0042"}]Your input stays in this browser. We don’t upload it. How we handle your data .
How to convert CSV to JSON
Paste CSV or open a file. Give each column a unique name in the first row, then select Convert to JSON.
Frequently asked questions
What is the difference between CSV and JSON?
CSV represents data in rows and columns. JSON can represent named fields, lists and nested objects. This converter turns each data row into a JSON object using the column headings as field names.
Does the CSV need a header row?
Yes. The first row becomes the field names. Give every column a unique, non-empty name and make sure each data row has the same number of cells as the header.
Will leading zeroes, dates and empty cells be preserved?
The converter keeps every cell as a JSON string. An ID such as 0042 retains its leading zeroes, a date keeps its original text and an empty cell becomes an empty string.
Can a CSV cell contain a comma, quote or line break?
Yes. Enclose the entire cell in double quotes. To put a literal double quote inside that cell, write it twice. For example, “Paris, France” stays in one cell when enclosed in straight double quotes.