Convert CSV to JSON
Paste CSV exported from Excel, Google Sheets or a database, and get a JSON array with one object per row. The first row provides the keys. Because the result is JSON, you can also convert it onward to YAML, XML or code.
How to use it
- Paste CSV into the Input panel (already in CSV mode), or open a
.csvfile. - The JSON array appears in the Output panel.
- Copy or download it, or choose another format from Convert.
How CSV is converted
- Delimiter detection for commas, semicolons, tabs and pipes.
- Quoted fields with embedded commas, quotes and line breaks (RFC 4180).
- Numbers,
true/falseandnullbecome JSON types; empty cells becomenull. - Dotted headers like
address.citybecome nested objects.
More JSON tools
All tools are free and run privately in your browser.
CSV to JSON FAQ
How do I convert a CSV file to JSON?
Open the file with the upload icon or drop it onto the Input panel. .csv files switch the input to CSV mode automatically.
Are numbers kept as numbers?
Yes. Values that look like numbers or booleans are converted. Very long digit strings, such as IDs, stay as strings so no precision is lost.
Is my data uploaded to a server?
No. The CSV to JSON runs entirely in your browser using JavaScript. Your data is never uploaded, logged or stored, and the tool keeps working offline after your first visit.