CSV to JSON Converter
Paste CSV to get a JSON array with one object per row, keyed by the header. Quoted fields, embedded commas and line breaks are parsed as the CSV standard defines.
Output
🔒 Runs in your browser. Your data is never uploaded.
How to use
- Paste your CSV, including the header row.
- Leave the delimiter on auto-detect, or pick it yourself.
- Copy the JSON; the status line shows the row and column count.
Semicolons from Excel
In regions where the comma is the decimal separator, Excel saves CSV files with semicolons between fields. Auto-detect looks at the first line and picks whichever of comma, semicolon, tab or pipe splits it into the most fields.
Values stay text by default
CSV has no types, so every value is a string unless you turn on type detection. Even then, values with leading zeros such as 007 and integers too large for a JavaScript number stay strings, so ZIP codes and long IDs are not damaged.
Frequently asked questions
- What if my CSV has no header row?
- Untick “First row is a header” and each row becomes a JSON array instead of an object.
- How are duplicate column names handled?
- The second occurrence gets a suffix, for example id and id_2, so no column silently overwrites another.
- Can a cell contain a line break?
- Yes, when the cell is wrapped in double quotes, as spreadsheet exports do. The line break is kept inside the JSON string.
Related tools
- JSON to CSV ConverterConvert a JSON array of objects to CSV for Excel or Google Sheets.
- JSON Formatter & ValidatorFormat, validate and minify JSON in your browser.
- YAML to JSON ConverterConvert YAML to JSON in your browser and see the line and column of syntax errors.
- Remove Duplicate LinesRemove duplicate lines from a list while keeping the original order.