Converting CSV to JSON means reading a table and writing each row out as an object whose keys come from the header row. A two-line CSV like name,city / Asha,Delhi becomes [{"name": "Asha", "city": "Delhi"}].
That sounds simple, until you meet a value with a comma in it, a note that spans two lines, or a semicolon-separated file from a European tool. The CSV to JSON converter on BISCS India follows the CSV standard (RFC 4180) closely, so those cases come out right, and it all happens in your browser.
Why convert CSV to JSON?
Spreadsheets are where data is born in most offices. JSON is what applications want. You might need to:
- Seed a database or a test fixture from a list someone maintained in Excel.
- Feed a product catalogue or price list into a website or app.
- Send records to an API that accepts JSON only.
- Load a lookup table, such as state codes or HSN categories, into JavaScript.
Writing that JSON by hand is slow and error-prone. A converter does it in a second.
A worked example
Here is a small CSV with a few awkward values:
id,name,city,amount,paid,notes
1,Asha Verma,Delhi,2500.50,true,
2,"Das, Rohan",Kolkata,1200,false,"Said ""call later"""
With the default settings, the output is:
[
{ "id": 1, "name": "Asha Verma", "city": "Delhi", "amount": 2500.5, "paid": true, "notes": "" },
{ "id": 2, "name": "Das, Rohan", "city": "Kolkata", "amount": 1200, "paid": false, "notes": "Said \"call later\"" }
]
The quoted "Das, Rohan" stays a single value. The doubled quotes "" turn into a literal quote, which JSON then escapes as \". And because type detection is on, 2500.50 is a number and true is a boolean rather than strings.
How to convert CSV to JSON with BISCS India
- Open CSV to JSON.
- Paste your CSV, drag a
.csv,.tsvor.txtfile onto the box, or click Upload. - Leave Delimiter on Auto-detect unless the result looks wrong. It checks comma, semicolon, tab and pipe and picks the one that gives the most consistent column count.
- Choose the Output: Array of objects (most common) or Array of arrays (smaller, positional).
- Set the options: First row is header, Detect numbers, booleans & null, Empty cells as null, Skip empty lines and Minify.
- Check the table in Preview and the status line, which reports rows, columns, the delimiter used and any rows with missing cells.
- Click Copy or Download .json.
Tab-separated files
TSV files, where values are separated by tabs, are common when data is copied straight out of a spreadsheet or exported from analytics tools. Paste them in exactly like CSV; auto-detect recognises the tab delimiter. You can even select a range of cells in Excel or Google Sheets, copy, and paste directly into the input box, because spreadsheets put tabs between cells on the clipboard.
Array of objects or array of arrays?
| Output | Looks like | Use it when |
|---|---|---|
| Array of objects | [{"name":"Asha","city":"Delhi"}] |
Sending to APIs, databases, most code |
| Array of arrays | [["name","city"],["Asha","Delhi"]] |
Charts, compact storage, column order matters |
Objects are self-describing and easier to work with in code. Arrays repeat no key names, so they are smaller for large tables.
When should you turn off type detection?
Type detection is convenient, but some values only look like numbers. Switch it off, or check the output carefully, for:
- Account numbers, Aadhaar-style IDs and long reference numbers. The tool only converts numbers up to 15 significant digits, so longer IDs stay as strings. Shorter IDs still become numbers, which may not be what your system expects.
- Codes with leading zeros.
0042is kept as a string, because0042is not a valid JSON number. Good, but be aware the column then has mixed types if other rows are plain numbers. - Version numbers and phone numbers.
10.20becomes the number10.2, losing the trailing zero.
If in doubt, keep everything as strings and convert the specific fields you need in your own code.
Common mistakes and how to spot them
- Unquoted commas.
Mumbai, Maharashtrawithout quotes splits into two cells. The status bar warns about rows with a different number of columns. - An unclosed quote. One stray
"can swallow the rest of the file into a single value. The converter flags "Unclosed quote at the end of the file" when this happens. - Duplicate or blank headers. Two columns both called
phonewould overwrite each other in an object. The tool renames the second onephone_2, and blank headers becomecolumn_1,column_2and so on. - The wrong delimiter. If everything lands in a single column, the file probably uses semicolons or tabs. Auto-detect usually catches this; otherwise choose manually.
- Excel’s hidden encoding. Save as "CSV UTF-8" in Excel so that Indian-language text and the ₹ sign survive. A byte order mark at the start of the file is removed automatically.
Is my data uploaded anywhere?
No. The CSV is parsed by JavaScript running on the page, and the JSON is built in memory on your device. Text files up to 50 MB can be loaded, though very large files will take longer on a phone. Because nothing leaves your computer, you can safely convert staff lists, customer exports or price sheets.
Related tools
To check or prettify the resulting JSON, open it in the JSON Formatter, which also offers a collapsible tree view. Going the other direction, JSON to CSV turns API data back into a spreadsheet-ready file. If your source is an .xlsx workbook rather than a CSV, start with the Excel & CSV Converter.
A quick checklist before you use the JSON
- Row count in the status line matches what you expect.
- No warning about rows with missing cells or unclosed quotes.
- IDs and codes are strings if your system treats them as text.
- Empty cells are
""ornull, whichever your application expects. - Key names are clean: no stray spaces, no duplicates.
Five seconds spent on this list saves a lot of head-scratching when the import fails later.