Convert CSV to JSON online: guide and examples
Transform your CSV files to JSON in seconds. Free online tool with header and delimiter handling.
Published on January 13, 2026Converting CSV to JSON is a common operation in data engineering, web development and data science. CSV files from Excel, Google Sheets or database exports often need to be transformed into JSON to be consumed by an API or a JavaScript application.
Understanding the conversion
A CSV (Comma-Separated Values) file is a tabular representation: the first row contains column headers, and each subsequent row is a record. The conversion to JSON creates an array of objects where each object corresponds to a CSV row and each key corresponds to a column header. The delimiter can be a comma, semicolon or tab depending on the region.
📊 Conversion table
| CSV (input) | JSON (output) |
|---|---|
| name,age,city | [ |
| Alice,30,Paris | {"name": "Alice", "age": "30", "city": "Paris"}, |
| Bob,25,Lyon | {"name": "Bob", "age": "25", "city": "Lyon"} |
| ] |
💡 Practical examples
Export your Excel table to .csv (File > Save As > CSV), paste into the tool, get a JSON array ready to use in a Node.js API or a React component.
European Excel exports use semicolons as delimiters. Select ';' as the separator in the tool for correct conversion.
Convert your contacts CSV to JSON, then use mongoimport --jsonArray to import it directly into a MongoDB collection.