How to convert CSV to JSON
Paste your CSV into the input field — the first row must be the header row with column names. The tool auto-detects whether your file uses commas, semicolons, or tabs and parses accordingly. Each data row becomes a JSON object with keys taken from the header row.
Numbers and booleans are typed automatically — 30 becomes the number 30, not the string "30". Empty cells become null.
Type coercion rules
| CSV value | JSON type |
|---|---|
| 42 | 42 (number) |
| 3.14 | 3.14 (number) |
| true | true (boolean) |
| false | false (boolean) |
| (empty) | null |
| "hello" | "hello" (string) |
| New York | "New York" (string) |
Common use cases
- Converting spreadsheet exports to JSON for web APIs
- Importing data from Excel or Google Sheets into a Node.js or Python script
- Transforming report exports into a format usable by frontend applications
- Seeding a database from a CSV file via a JSON-based API