CSV to JSON Converter.
Convert CSV or TSV into clean JSON in one click. Choose your output shape, let the tool detect the delimiter, infer numbers and booleans, and copy or download the result — all in your browser.
No signup · No uploads · No file-size cap
JSON output
// Paste CSV and press “Convert to JSON”. Convert CSV to JSON online — free and private
A CSV to JSON converter turns spreadsheet-style rows and columns into structured JSON that APIs, databases, and JavaScript can consume directly. Paste your CSV above, press Convert to JSON, and the tool reads your header row, maps each data row to an object, and infers real types. Because everything runs client-side, you can convert CSV to JSON online without uploading a single byte.
How to convert CSV to JSON in three steps
- Paste your CSV into the input, or click “Load sample” to see the format.
- Choose your options — output shape, delimiter (or auto-detect), whether the first row is a header, and whether to infer types.
- Convert and export — copy the JSON or download it as
data.json.
Pick the output shape your code needs
Most converters give you exactly one shape. This one offers three.
Array of objects produces one object per row keyed by
your headers — the shape almost every REST API and JavaScript app
expects. 2D array returns the raw grid as an array of
arrays, ideal for spreadsheets, charts, and table libraries.
Keyed by column returns a column-oriented object
({ "name": [...], "age": [...] }) that maps cleanly onto a
pandas DataFrame or a columnar store.
Delimiter detection, TSV, and type inference
The converter automatically detects whether your data is separated by
commas, semicolons, tabs, or pipes — so TSV to JSON and
European semicolon files just work — and you can always override it.
With type inference on, numbers become numbers,
true/false become booleans, and
null is recognised, while identifiers with leading zeros
stay as strings so you never lose a ZIP code or product code. Turn
inference off for fully lossless string output.
Why use this CSV to JSON tool?
Unlike converters that upload your file to a server and cap large inputs, this one parses everything locally with no file-size limit. Its RFC 4180 parser correctly handles quoted fields, commas inside values, and line breaks within a cell — the cases that break naive splitters. Going the other way? Use the JSON to CSV converter, explore data with the JSON viewer, or tidy output with the JSON formatter. Learn more in our guide on how to convert CSV to JSON.
FAQ
CSV to JSON, answered.
How do I convert CSV to JSON online? +
Paste your CSV (or TSV) data into the converter above and press Convert to JSON. The tool reads the first row as column names, turns each remaining row into an object, and shows formatted JSON instantly. You can copy it or download a .json file. Everything runs in your browser, so nothing is uploaded.
What output shapes can I choose? +
Three. Array of objects gives one object per row keyed by the header (the most common shape for APIs). 2D array returns an array of arrays — the raw grid, useful for spreadsheets and plotting. Keyed by column returns a column-oriented object where each key maps to an array of that column's values, handy for data frames and analytics.
Does it detect the delimiter automatically? +
Yes. By default the converter sniffs whether your file uses commas, semicolons, tabs, or pipes and tells you which it found. You can also force a specific delimiter — choosing tab handles TSV files, and Custom lets you enter any character.
How are numbers and booleans handled? +
With Infer types on (the default), values that look like numbers, true, false, or null are converted to real JSON types instead of strings, while IDs with leading zeros like 007 are kept as strings. Turn inference off to keep every value as a string — useful when you need exact, lossless text.
Can my CSV contain commas and line breaks inside a field? +
Yes. The parser follows RFC 4180, so quoted fields can contain the delimiter, line breaks, and escaped double quotes (""). A value like "Smith, John" stays in a single field rather than splitting into two columns.
Is there a file size limit, and is my data safe? +
There is no size cap — conversion happens entirely on your device, so the only limit is your browser's memory, and large CSVs that server-based tools reject convert fine here. Your data is never uploaded, stored, or seen by any server, making it safe for exports and private records.