CSV to JSON Converter
Convert CSV (or TSV / semicolon-separated) into JSON with optional type inference. Handles quoted fields, embedded commas, and newlines. Runs entirely in your browser.
CSV input
How it works
- The CSV is parsed row by row with a proper state machine: quoted fields, escaped quotes (
""), embedded commas, and multiline fields are all handled. - With header enabled the first row becomes object keys; without it you get an array of arrays.
- Infer types turns numeric and boolean-looking strings into real numbers/booleans and empty cells into
null. - Every row in a header-driven result becomes one JSON object; missing cells become
null.
About CSV to JSON Converter
CSV is everywhere — spreadsheet exports, database dumps, analytics downloads — but its text format is awkward to consume in code. Converting to JSON gives you structured data you can feed directly into JavaScript, Python, or any API tooling. This converter parses CSV properly, not with a naive split(","): fields wrapped in quotes can contain commas, quotes, and even newlines, and a correct parser keeps those intact.
Export from Excel, Google Sheets, or your database, paste it here, and get JSON you can use immediately. Type inference keeps your numbers as numbers instead of strings, which matters for anything you will later sum, average, or chart. Pair this with the JSON to CSV tool on this site to go back the other way, or with the JSON Formatter on jsonversal.com to tidy the output.