OnlineCSV

CSV to JSON Converter

Convert CSV data into formatted JSON objects or nested array structures.

Drop your CSV file here

or click to browse from your computer

CSV, TSV, XLSX, TXT• Private in-browser processing

Private by Design — Your CSV Stays on Your Device

OnlineCSV processes your files entirely client-side using browser JavaScript. Your CSV contents are never uploaded to any server, database, or remote service.

No account requiredWorks offlineZero data transmission

How to Use CSV to JSON

1

Input CSV

Drag and drop your CSV file or paste CSV text.

2

Choose Formatting

Select between Array of Objects or Array of Arrays, and set pretty or compact output.

3

Copy or Download JSON

Copy the output to your clipboard or download the generated .json file.

Example Transformation

Example CSV Input
id,name,status
101,Acme Corp,Active
102,Beta LLC,Pending
Generated Output
[
  {
    "id": "101",
    "name": "Acme Corp",
    "status": "Active"
  },
  {
    "id": "102",
    "name": "Beta LLC",
    "status": "Pending"
  }
]

Frequently Asked Questions

How are numbers and booleans handled?

By default, fields are kept as strings to preserve leading zeros and precision, but optional data typing can infer numbers.

Does it handle multiline quoted text?

Yes, full RFC 4180 parsing is applied so multiline CSV values are properly escaped inside JSON strings.

Related CSV Tools