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.Paste CSV or choose a .csv file
- 2.Pick the output shape
- 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.
| Aspect | This tool | Upload-based converters | Desktop software |
|---|---|---|---|
| Where the file is processed | In your browser, on this page | On the vendor's servers, after an upload | On your own machine, after installing an app |
| Account required | No | Usually — free tiers ask you to sign in before lifting a limit | No, though a licence may be needed |
| Size you can process for free | No size cap, no run limit | A few files per hour, or a ~5–10 MB cap before a paywall | Whatever your disk and RAM allow |
| Price | Free. Pro is $9/month, and only buys larger files and AI features | Usually a subscription — roughly $7–15/month as of November 2026 | A one-off licence, or a subscription |
| Works offline | Yes, once the page has loaded | No | Yes |
| Time before work starts on a 20 MB file | Immediate — there is nothing to upload | Dominated by the upload — about 16 s on a 10 Mbps uplink | Just the app launch |
| What it cannot preserve | Formulas become their last computed value; merged cells and styles are dropped | The same — the conversion is the same maths | The same, though some desktop apps re-render styles more faithfully |
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
On this page
- What is CSV to JSON
- What it does with your file
- How it actually behaves
- How to use it
- How this compares
- FAQ
Excel formula reference
29 functions with syntax, arguments and a table you can retype.
Browse the list →