CSV to JSON converter
Convert CSV to JSON
To convert CSV to JSON, drag the .csv file, hold Shift and drop it on the JSON bubble: a .json file appears next to it, ready for your code or app. Your data stays on your computer, so customer lists, sales figures and payroll exports are never uploaded.
Free to download, $9.50 once to unlock. 7-day money-back guarantee.
How to convert CSV to JSON
- 1
Drag the file
Drag customers.csv from Finder, File Explorer or your desktop.
- 2
Hold Shift
Keep dragging and hold Shift. The Uncle pops up next to your cursor with the formats that fit your file.
- 3
Drop it on JSON
Drop the file on the JSON bubble. customers.json appears next to the original.
Got a lot of them? Select several files and drag them together. Prefer clicking? Open the Feed Window from the menu-bar or tray icon and drop the files there.
Why turn CSV into JSON?
CSV is how data leaves spreadsheets, banks, shops and databases. JSON is how web apps, APIs, configuration files and JavaScript code like to take it in. Converting bridges the two without writing a parsing script.
Developers use it to seed a database, build test fixtures or load a product list into a static site. Analysts use it to feed data into tools that expect JSON.
| CSV | JSON | |
|---|---|---|
| Shape | A flat table of rows and columns | Nested objects and arrays |
| Specification | RFC 4180 (2005), though many variants exist | RFC 8259 and ECMA-404 |
| Data types | Everything is text | Strings, numbers, true/false, null, arrays and objects |
| Readable by | Spreadsheets and people | Programs, browsers and developers |
| Size | Compact: headers appear once | Larger: keys often repeat for every record |
Good to know
- CSV has no data types, so a value like 00123 or 1e5 is ambiguous. Check whether numbers, postcodes and IDs came through the way your program expects.
- CSV files come in different flavours: commas or semicolons, different text encodings. If the JSON looks jumbled, check how your CSV was exported.
- The JSON will be bigger than the CSV, because each record usually repeats the field names.
- Empty cells in a CSV are simply empty; check how they appear in the JSON before importing it.
On your computer
macOS
Numbers and Excel can export CSV but not JSON. Export your sheet as CSV, then drop that file on JSON.
Linux
Tools such as Miller ('mlr --icsv --ojson cat') or a few lines of Python do this in a terminal. Let's Drag! is the no-code way, with the same offline privacy.
Everything happens on your computer: the file is never uploaded. See the first-launch guide for macOS and Windows.
CSV to JSON: questions
Does the first row of my CSV become the JSON keys?
A header row is the usual way to name the fields of each record. Make sure your CSV has one and open the JSON to see how the fields are named.
Why are my zip codes or phone numbers wrong in the JSON?
CSV stores everything as text and has no types, so leading zeros and long digit strings can be read as numbers somewhere along the way. Check those columns in the result.
Can I convert an Excel sheet straight to JSON?
Yes: XLSX files can be dropped on JSON as well. If you start from CSV, the result works the same way.
Is JSON or CSV better for my data?
CSV for tables people open in spreadsheets. JSON for data a program reads, especially when records have nested parts.
Related conversions
Stop uploading. Start dragging.
30 conversions, 100% on your computer. Mac, Windows and Linux.
Free to download, $9.50 once to unlock. 7-day money-back guarantee.