CSV to JSON
Paste CSV or data copied from Excel and get a JSON array of objects. Delimiters are detected automatically and numbers and booleans are converted to real types.
Free No sign-up Updated
How to use CSV to JSON
- 1 Paste your CSV data into the input, or click Load sample. You can paste directly from Excel or Google Sheets.
- 2 Leave the delimiter on Auto or pick comma, semicolon, tab or pipe.
- 3 Keep First row is header enabled to get an array of objects, or disable it to get an array of arrays.
-
4
With Detect types, numbers and true/false become real JSON values. Copy or download the result as
.json.
Why convert CSV to JSON?
JSON is the format web applications, APIs and JavaScript understand natively. Converting a spreadsheet export to JSON makes it easy to seed a database, mock an API response, import data into a CMS or load configuration into an app.
Clean data, real types
With type detection, numbers become numbers and true/false become booleans, while values such as ZIP codes with leading zeros stay as text. Quoted fields with commas and line breaks are parsed correctly.
Want to check or prettify the result? Paste it into the JSON Formatter. To go back to a spreadsheet, use JSON to CSV.
Frequently asked questions
Can I paste data copied from Excel or Google Sheets?
Yes. Spreadsheet data is copied as tab-separated text, and the Auto delimiter detects it automatically.
How are quotes and line breaks inside cells handled?
The parser follows the CSV standard (RFC 4180): fields wrapped in double quotes may contain commas, line breaks and escaped quotes ("").
Why do some numbers stay as text?
Values with leading zeros, such as ZIP codes or IDs like 007, are kept as strings so no information is lost. Very long numbers are also kept as text to avoid precision errors.
What happens with duplicate or empty column names?
Duplicate headers get a suffix (name_2) and empty headers are named column_N, so every value is kept.
Is my data private?
Yes. The conversion happens in your browser and your data is never uploaded.