Sign in Sign up free Account

CSV to JSON Converter

Convert CSV, TSV or an Excel file to JSON: an array of objects, arrays or columns, with numbers and true/false typed and nested keys from dotted headers.

Paste cells or a Google Sheets link

Output


        

How it works

  1. Add your CSV

    Drop in a file, paste cells copied from Excel or Google Sheets, or paste a Google Sheets link.

  2. Check the table

    Every column is shown with what it holds - numbers, dates or text - so you can see it was read right before you save it.

  3. Download the JSON

    Or copy it, or send it straight to a new Google Sheet. Nothing is uploaded at any point.

CSV to JSON Converter: what you need to know

APIs and apps speak JSON; exports and spreadsheets speak CSV. CSV to JSON should be trivial, until a comma inside quotes splits a row or an ID loses its leading zero.

This converter handles quoted commas and line breaks, keeps IDs as they were, recognises numbers properly, and shows you the first rows before you download.

CSV and JSON: what changes

  • CSV: Rows of values separated by commas, the lowest common denominator of data. No types, no formatting, and quoting and encodings vary between programs.
  • JSON: Structured data as nested objects and lists, the language of web APIs. Exact structure and types that every programming language reads.

How the CSV to JSON converter works

A CSV is read in your browser. Quoted commas, line breaks inside cells, leading zeros and long ID numbers come through untouched, and values like 1,234.50, $1,200 and 7% are recognised as numbers.

It is written as JSON with numbers written as numbers, and a preview of the first rows is shown before you download.

What the JSON is used for

  • APIs and apps
  • Configuration
  • Data exports

What makes this CSV to JSON converter different

  • Nothing silently changed. Zeros, IDs and quoted text survive.
  • Numbers stay numbers. Currency and percentages are recognised.
  • Preview first. See the rows before you save.

Tips for the best JSON

  • Make sure the first row holds the column names.
  • Remove totals rows and notes above the table for the cleanest result.

On the blog: How to Convert CSV to JSON Free, Step by Step

CSV to JSON converter

  • csv to json
  • csv to json converter
  • convert csv to json
  • excel file to json
  • export csv to json
  • csvjson
  • free csv to json converter
  • excel to csv to json converter free
  • excel to csv to json online

CSV to JSON here turns each row into an object keyed by the header, with numbers and true/false written as real JSON values, not strings. Quoted cells, commas and line breaks inside cells are read to the CSV standard, so nothing lands in the wrong key.

This csv to json converter writes the shape you need: an array of objects, an array of arrays, an object of columns, or an object keyed by the first column, and JSON Lines for streaming and BigQuery. A header like address.city can build nested objects.

To convert csv to json, drop in the file or paste the text, pick the shape and download. It also takes an excel file to json: drop in an .xlsx and choose the sheet.

Need to export csv to json for an API, a web app or a database seed? Copy the result straight to the clipboard. If you have used csvjson before, this does the same job - and never uploads your data.

A free CSV to JSON converter: the header row becomes the keys, numbers and true/false keep their types. Starting from a spreadsheet? Excel to CSV to JSON online: drop the .xlsx on the Excel to JSON page. An Excel to CSV to JSON converter free of installs.

How to convert CSV to JSON (3 steps)

Paste the rows or drop a .csv.tsv or Excel file; check the table shown; choose an array of objects, arrays or columns, then copy or download the JSON.

CSV vs JSON: which should you use?

CSV is a flat table that opens in Excel; JSON holds nested data and types and is what APIs and JavaScript read. Convert to JSON when the data is going into code.

Handling headers, quotes and empty values

The first row becomes the keys. Quoted fields with commas or line breaks inside are read correctly, empty cells become empty values, and numbers and true/false are typed.

Nested values and arrays from CSV columns

A dotted header such as address.city becomes a nested object, so a flat CSV can produce the nested JSON an API expects.

CSV to JSON for APIs and databases

An array of objects is the shape most APIs and document databases take; JSON Lines (one object per line) suits bulk imports.

How to convert CSV to JSON

  1. Drop in a CSV, TSV or Excel file, or paste the data.
  2. Choose the JSON shape, typed values and indent.
  3. Download the .json file or copy it.

People also search for

  • json to csv
  • excel to json
  • csv to json array
  • csv to json online
  • tsv to json

Why it matters

Private by design

Bank statements, payroll and customer lists never leave your computer: the file is read and written in your browser.

Nothing silently changed

Leading zeros, long ID numbers, commas inside quotes and line breaks inside cells come through exactly as they were.

Numbers stay numbers

Values like 1,234.50, $1,200 and 7% are recognised, so Excel and JSON get real numbers rather than text.

Reviews

No reviews yet. Used this tool? Yours could be the first.

Used this tool? Sign in to write a review.

Questions

How do I convert CSV to JSON?

Drop your CSV into the box at the top of this page and press Convert to JSON. The conversion runs in your browser in a few seconds. Check the result, then download a JSON.

What is the best CSV to JSON converter?

One that gives you your data in the new format, exactly as it was, shows the result before you pay, and does not upload your file. That is what this page is built to do.

Does it handle semicolons and tabs?

Yes. The delimiter is detected: commas, semicolons, tabs and pipes all work.

What about very large files?

Files of tens of megabytes work; the limit is your browser's memory, since nothing is uploaded.

Can I get an array of objects?

Yes, that is the default: one object per row, keyed by the header.

Are commas, quotes and line breaks inside cells handled?

Yes. Cells are read and written to the CSV standard (RFC 4180): a cell with a comma, a quote or a line break is quoted, and quotes inside are doubled, so nothing splits into the wrong column.

Will leading zeros and long numbers survive?

Yes. Cells are kept as the text they were: 00123 stays 00123 and a 16-digit account number is not turned into 1.23E+15. In Excel output, such cells are stored as text for exactly that reason.

Does it work with Google Sheets?

Paste a Google Sheets link (shared as "Anyone with the link") or copy the cells and paste them. To send a result to Google Sheets, use Open in Google Sheets: the table is copied and a new sheet opens, ready for Ctrl+V.

Is my data uploaded?

No. The whole conversion runs in your browser, so the file never leaves your computer.

Can it open a password-protected PDF or Excel file?

Yes. Drop it in and you are asked for the password; the file is unlocked in your browser and the password is never sent or saved. PDFs locked with RC4 or AES (up to AES-256, PDF 2.0) and Excel workbooks saved with Encrypt with Password both open. A PDF that only restricts copying or printing opens without asking. Without the password nothing is guessed: the file stays shut.

How big a file can it handle?

Hundreds of thousands of rows are fine on a normal laptop; the preview shows the first rows and the download has them all.