LocalExcelTool
Get started

CSV to JSON

Turn CSV into a JSON array using the first row as keys — in your browser, nothing uploaded.

What is CSV to JSON

CSV to JSON conversion names each column from the first row and folds every following row into one record. Values that parse as numbers stay numeric; everything else becomes a string. If the header row has blanks or duplicates the output falls back to arrays, so no column disappears silently.

🔒 Everything runs in your browser. Nothing is uploaded.

What this tool actually does with your file

Where it runs
In your browser, on this page
Upload
None — the file never leaves your device
Offline
Works with the network disconnected

From rows to objects

The header row becomes the keys and every subsequent row becomes an object, giving the array-of-objects shape that every API and every JavaScript consumer expects. A CSV without a header produces arrays of arrays instead, which keeps the data but loses the names.

Values are typed on the way in: integers and decimals become numbers, true/false become booleans, empty fields are omitted. Everything else stays a string, including values with a leading zero — a postcode of 01234 must not become 1234.

Quoted fields are handled properly, so a value containing a comma or a newline does not split the row. This is the difference between a converter and a split(',') one-liner.

When you should keep the CSV as CSV

If the file is going into a spreadsheet or a database bulk load, JSON adds a parse step and nothing else. CSV is smaller and faster for flat data.

If the data is wider than about fifty columns, the JSON becomes hard to read and the file gets larger than the CSV. That is a signal the data model needs normalising, not that the format is wrong.

If the consumer is a human, a Markdown table is more useful than either: JSON adds brackets and quotes that nobody reads voluntarily, and CSV loses the column alignment that makes a table scannable. Choose the format for the reader, not for the parser.

How to use

  1. 1.Paste CSV or choose a .csv file
  2. 2.Pick the output shape
  3. 3.Run it, then copy the JSON

How this compares

There are three ways to do this conversion: in the browser (this page), through a server-side converter, or with a desktop app. The useful difference is not speed — it is where your file goes and how far the free tier actually reaches.

AspectThis toolUpload-based converters
Where the file is processedIn your browser, on this pageOn the vendor's servers, after an upload
Account requiredNoUsually — free tiers ask you to sign in before lifting a limit
Size you can process for freeNo size cap, no run limitA few files per hour, or a ~5–10 MB cap before a paywall
PriceFree. Pro is $9/month, and only buys larger files and AI featuresUsually a subscription — roughly $7–15/month as of November 2026
Works offlineYes, once the page has loadedNo
Time before work starts on a 20 MB fileImmediate — there is nothing to uploadDominated by the upload — about 16 s on a 10 Mbps uplink
What it cannot preserveFormulas become their last computed value; merged cells and styles are droppedThe same — the conversion is the same maths

Server-side converters are genuinely better at some things: very large files, sharing results with a team, keeping a conversion history, and automating batches from a script. For the case in front of you — one file, one format change, right now — they mostly add an upload wait and a sign-up form.

Frequently asked questions

Can the header row be non-English?

Yes. Header cells become JSON keys verbatim; even characters that are awkward in identifiers make valid string keys.

How are numbers detected?

CSV carries no types, so anything that parses as a number is emitted as a number and the rest as strings. Columns where a leading zero matters (phone numbers, postcodes) need a type fix after conversion.

Is anything uploaded?

No. Both the parsing and the JSON output happen inside this page.

What this kind of conversion cannot keep

Spreadsheet conversion is lossy by nature: a workbook carries formulas, styles, merged cells and multiple sheets, while CSV carries rows of text. This tool keeps values and order, recalculates nothing, and drops presentation on purpose. That is why it can run without a server — and why a converted file will not look like the original.

More in Spreadsheets & Docs