Convert CSV to JSON
The first CSV row becomes field names and subsequent rows become objects. CSV cell values remain strings, so check numbers and booleans before importing.
Processed entirely in your browser using a Web Worker. Nothing is uploaded.
What is CSV?
CSV (Comma-Separated Values) is a plain-text table format — one line per row, fields separated by commas. It's the closest thing to a universal format for spreadsheets and simple databases: nearly every spreadsheet app, database and programming language can read it, but it can only represent flat tables, not nested structures.
When to convert CSV to JSON
Typical for turning a spreadsheet export into seed data, a mock API response or input for a JavaScript app. Clean the header row first: blank or repeated column names produce awkward keys. Because every cell arrives as a string, code that expects a number or true/false must cast those fields after loading.
How it works
- Drop your CSV file into the box above, or click to choose one.
- Your browser parses it and rewrites it as JSON instantly — nothing is sent anywhere.
- Download the JSON file. That's it.
Other conversions
Questions
Does anything get lost converting to JSON?
The first CSV row becomes field names and subsequent rows become objects. CSV cell values remain strings, so check numbers and booleans before importing.
Why are my numbers in quotes in the JSON?
CSV has no data types, so every cell stays a string: 007 stays "007" and true stays "true". That protects leading zeros, but your application must convert the values it needs as numbers.
My file uses semicolons. Will it work?
Not as is. Only commas separate fields, so id;name becomes one long key. Re-export the spreadsheet with comma separators, or replace the delimiter carefully before converting.
What if rows have too few or too many values?
Missing cells become empty strings and extra values are dropped without a warning. If two columns share a header, the last one wins. Compare row and column counts afterwards.
Having trouble with this tool? Report an issue →