CSV to JSON Converter
Convert CSV to JSON with proper handling of quotes and commas inside cells — delimiter auto-detected, fully offline.
CSV to JSON — with a parser that respects quotes and commas
Converting CSV to JSON looks trivial until a value contains a comma — then naive split-on-comma converters silently shred your data. This tool uses a proper RFC 4180 parser: quoted fields, escaped quotes and even line breaks inside cells are handled the way Excel writes them. Paste CSV or open a .csv file, and get clean JSON instantly.
Auto-detected delimiters
Comma, semicolon (hello, European Excel), tab or pipe — the tool counts candidates outside quoted sections and picks the right one, showing you what it chose. One click switches to a manual delimiter when you know better.
Objects or arrays — your choice
With headers on, each row becomes a JSON object keyed by your column names — the shape APIs and JavaScript code expect; empty or duplicate headers get safe fallback names. With headers off, you get an array of arrays that mirrors the grid. Output comespretty-printed or minified, with copy and .json download buttons.
Your spreadsheet stays yours
CSV exports are where customer lists, salaries and order histories live. This converter runsentirely in your browser — no upload, no server, no retention, and it works offline once loaded. The row and column counts you see are computed on your device.
Related free tools
Validate or re-indent the result in the JSON formatter. Converting loosely structured text instead of a table? Use TXT to JSON. Need the table out of a screenshot first? Try image to Excel, then export CSV and finish here.
Frequently Asked Questions
How does the converter handle commas inside values?
Correctly — that’s the whole point of a real CSV parser. Fields wrapped in double quotes can contain commas, line breaks and escaped quotes (written as two double quotes), exactly as the CSV standard (RFC 4180) defines. Values like “Smith, Jr.” stay one field, not two.My file uses semicolons, not commas. Will it work?
Yes. European Excel exports often use semicolons (because the comma is a decimal separator in many locales). The tool auto-detects comma, semicolon, tab and pipe delimiters — and you can also pick one manually if the guess is ever wrong.What’s the difference between the two output shapes?
With “first row is headers” enabled you get an array of objects — each row becomes {"name": "Ada", "age": "36"} — which is what most APIs and JavaScript code want. Disabled, you get an array of arrays, preserving rows exactly as a grid.Is my data uploaded to convert it?
No. Parsing and conversion run entirely in your browser — spreadsheets full of customer data, prices or personal records never leave your device. Nothing is stored, and the tool works offline once the page has loaded.How big a file can I convert?
There’s no artificial limit — practical capacity depends on your device’s memory, and files with tens of thousands of rows are typically fine. Since nothing is uploaded, there’s no file-size pricing or waiting on a server either.Why are all my numbers in quotes in the JSON?
CSV has no types — everything in it is text, and the converter faithfully outputs strings rather than guessing. Guessing goes wrong fast: postal codes lose leading zeros, phone numbers become numbers, “1e5” explodes into 100000. Convert types deliberately in your own code where you know the schema.Can I convert Excel (.xlsx) files directly?
Not directly — save or export the sheet as CSV first (File → Save As → CSV in Excel, or File → Download → CSV in Google Sheets), then paste or open it here. For extracting tables from images or screenshots, try our image to Excel tool first.