Passer au contenu principal
Development ★ Popular

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, 2026

Converting 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

Example 1: Excel export to JSON

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.

Example 2: CSV with semicolon delimiter

European Excel exports use semicolons as delimiters. Select ';' as the separator in the tool for correct conversion.

Example 3: import data into MongoDB

Convert your contacts CSV to JSON, then use mongoimport --jsonArray to import it directly into a MongoDB collection.

⚡ Use the tool

Try our free online tool — no installation required.

Open the tool →

🔗 Other useful tools

Lien copié !