CSV to JSON

Convert CSV to JSON arrays or objects.

No upload

Loading tool…

Processing happens on your device using your browser's CPU/GPU. Results are kept only in this tab's memory and are wiped when you click “Clear” or close the page.

About CSV to JSON

Turn a spreadsheet export into the JSON array an API or a JavaScript app expects. Paste the CSV or open a .csv or .tsv file and the rows appear as JSON objects instantly, keyed by your header row. Useful for developers seeding a database, students loading sample data, and anyone moving a contact or product list out of Excel. Parsing happens entirely in your browser.

How to use CSV to JSON

  1. Paste your CSV into the left pane or click Open file to load a .csv, .tsv or .txt file.
  2. Keep First row is header ticked so column names become JSON keys, or untick it for plain arrays.
  3. Tick Detect numbers and booleans if you want 91 as a number instead of the text "91".
  4. Turn Pretty print off when you want compact single-line JSON.
  5. Copy the output or download it as data.json.

What people use it for

  • Converting a product or price list exported from Excel into seed data for an app
  • Preparing a student marks sheet as JSON for a college project or a chart library
  • Feeding a contact list into an API that only accepts a JSON array
  • Quickly checking how a CSV will look once your backend has parsed it

Good to know

Commas, semicolons and tabs are detected automatically, and quoted fields containing commas or line breaks are handled correctly. Blank lines are skipped. With type detection on, values like 007 lose their leading zeros and long numbers such as Aadhaar or phone numbers can lose precision, so untick it for identifier columns.

Frequently asked questions

Does my CSV file get uploaded anywhere?
No. The file is read and parsed by JavaScript inside your browser tab. Nothing reaches a server, and the data disappears when you close the page.
Why did my phone number turn into a strange value?
Type detection converted it to a number, which drops leading zeros and rounds very long digits. Untick Detect numbers and booleans to keep every field as text.
Can it read an Excel .xlsx file?
Not directly. Save the sheet as CSV from Excel or Google Sheets first, then paste or open it here. For .xlsx analysis, use the CSV / Excel Data Analyzer instead.
What happens if two columns have the same header?
Later columns with a duplicate name overwrite earlier ones in each JSON object, so rename them in the header row before converting.