CSV to JSON
Turn CSV from a spreadsheet into JSON. Handles quotes, commas inside cells and any separator.
How it works
Reads CSV, including quoted cells and commas inside cells, detects the separator, and writes JSON. The first row can become the keys. Choose a list of objects, one object keyed by the first column, one list per column for charts, or one object per line (NDJSON).
Worked example
The CSV name,marks then Aman,81 becomes [{"name":"Aman","marks":81}] with numbers turned into real numbers.
Good to know
- Tick the empty-cells option if your code wants null instead of an empty text.
- Phone numbers and IDs with leading zeros stay as text. A value like 007 is not turned into a number.
- Excel in some countries saves with semicolons. The detector handles that.
Common questions
- How are numbers decided?
- Plain numbers like 12 or -3.5 become numbers. Anything with letters or a leading zero stays as text.
- What if a row has fewer cells?
- Missing cells are filled with an empty value.
- Is the data uploaded?
- No. It is converted in your browser.
More in Data.
ASCII Table
The full ASCII chart with decimal, hex, octal and binary codes. Search by character, number or name.
OPEN →CSV AnalyzerSee what is inside a CSV: each column's type, missing values, unique values, and min, max and average.
OPEN →CSV CleanerTidy a messy CSV: trim spaces, drop empty rows and columns, and even out short rows.
OPEN →