CSV to JSON
Convert CSV to JSON live — auto-detects the delimiter (, ; tab |), optional typed values, header toggle, and row/field stats.
About this ToolHow it works, benefits & use casesTap to collapse
Paste CSV (or any delimited text) and convert it to JSON live. Parsing is handled by PapaParse, a robust CSV engine that copes with quoted fields, escaped quotes and embedded line breaks — not just naive comma-splitting. You can let the tool auto-detect the delimiter among comma, semicolon, tab and pipe, or pin a specific one. When the first row holds column names, the "First row is header" option turns each subsequent row into a keyed object; turn it off to get arrays instead. An optional typed-values mode converts cells to native JSON types so "30" becomes a number and "true" becomes a boolean, with header names trimmed of stray whitespace. Each conversion reports the row and field counts, and non-fatal parser notices (such as ragged rows) surface as a warning while still keeping your data. The JSON streams live and can be copied, downloaded as .json, or shared — processed entirely in your browser.
How to Use
- 1Choose a delimiter, or leave it on "Auto-detect" to guess between comma, semicolon, tab and pipe.
- 2Keep "First row is header" on to produce keyed objects, or turn it off for arrays of values.
- 3Toggle "Typed values" to convert numbers and booleans to real JSON types instead of strings.
- 4Paste your CSV into the input panel — the JSON updates live — or click "Load example".
- 5Press "Convert to JSON", then copy the result, download it as output.json, or share it via URL.
Key Benefits
- PapaParse engine handles quoted fields, escaped quotes and embedded newlines
- Auto-detects the delimiter among comma, semicolon, tab and pipe
- Header toggle: keyed objects or plain arrays per row
- Optional typed values turn numeric and boolean cells into real JSON types
- Reports row and field counts, with non-fatal notices shown as warnings
- Live conversion plus copy, .json download and shareable URLs
- Runs fully in the browser — your CSV is never uploaded
Common Use Cases
- Importing a spreadsheet export into a JavaScript app as JSON
- Converting a semicolon- or tab-separated file from a non-US locale
- Turning CSV fixtures into JSON test data with proper types
- Reshaping a data dump for an API request body
- Quickly previewing the structure of an unfamiliar delimited file as JSON
Options
30 → number, true → boolean
0 characters · live
Paste CSV above to see the JSON live.
Was this tool helpful?
Share Your Experience
Help others discover this tool!
Related tools
- Color ConverterConvert between HEX, RGB, HSL, and HSV
- cURL to Code ConverterConvert cURL commands to code in various languages
- JSON Path FinderFind and test JSON paths
- npm to Yarn ConverterConvert npm commands and package-lock.json to Yarn equivalents
- Postman to cURL ConverterConvert Postman requests to cURL commands
- Text to HexConvert text to hexadecimal
When the delimiter is set to "Auto-detect", PapaParse inspects the input and guesses among comma, semicolon, tab and pipe based on which produces the most consistent columns. If you know the delimiter, selecting it explicitly avoids any ambiguity.
With "First row is header" enabled, the first line supplies the property names and each following row becomes an object keyed by those names (header text is trimmed of whitespace). With it disabled, every row — including the first — is emitted as an array of cell values.

