Skip to content
convertirdocs

CSV to JSON converter

Turn a spreadsheet export into JSON: each row becomes an object and each column header becomes a key, ready for an app, a script or an API.

100% free · no sign-upYour files never leave your device

or drop them here

How to convert CSV to JSON in 3 steps

  1. 1

    Open one or more CSV or TSV files; the separator is detected automatically.

  2. 2

    Check the preview of the first rows and make sure the headers are right.

  3. 3

    Download the JSON files.

Your files never leave your device

This tool runs entirely inside your browser. The file is never uploaded to any server: it is read, processed and downloaded on your own device. When you close or reload the page, it is gone from memory.

From spreadsheet to code

Data often starts in a spreadsheet: a product list maintained by the sales team, a list of stores with addresses, translations, a quiz's questions and answers, a price table or a set of test data. Developers need that same data as JSON to load it into a website, an app, a database seed, a static site generator or an API request.

This converter reads the CSV and writes a JSON array of objects. The first row is used as the keys, and every following row becomes one object. Instead of writing a script for a one-off conversion, you open the file, check the preview and download.

Separator detected for you

CSV files come in several flavors. Some use commas, some semicolons, especially those exported in countries where the comma is the decimal mark, and some use tabs (TSV). The converter detects which one your file uses, so you don't have to know in advance. The preview of the first rows confirms that columns were split correctly before you download.

Tip: make sure the first row contains clear column names without repeats, because they become the keys of each object. Short names without spaces, such as name, price or city, are the easiest to use in code.

Watch for small details that cause trouble later: duplicated column names, empty header cells, and extra rows of totals or notes at the bottom of the export. Removing them in the spreadsheet before converting gives you a clean array where every object has the same keys. If a column holds codes with leading zeros, such as zip codes or product codes, they are kept as they appear in the file.

Exports from banks, stores and systems

Many business systems export only CSV: online stores, point-of-sale systems, email platforms, accounting software and bank statements. Converting those exports to JSON makes it easy to feed them into an automation, a dashboard or a custom script. You can convert several files at once.

If you need the data in a spreadsheet instead, the CSV to Excel converter writes an .xlsx file that keeps leading zeros and long numbers intact.

Private conversion

Exports from business systems usually contain customer or financial data. The conversion happens in your browser, so the file is not uploaded and nothing is stored. It is free, without an account and without limits beyond your device's memory. For the opposite direction, JSON to CSV turns JSON back into a table.

Frequently asked questions

What does the JSON look like?

An array of objects. Each row of the CSV becomes an object whose keys are the column headers.

Does my CSV need a header row?

Yes. The first row is used for the keys, so it should contain the column names.

My file uses semicolons or tabs. Is that a problem?

No. The separator is detected automatically: comma, semicolon or tab.

Can I convert an Excel file to JSON?

Yes. The same converter reads .xlsx files; choose JSON as the output.

Can I convert several CSV files at once?

Yes. Open them together and download each JSON file, or all of them in a ZIP.

Are leading zeros kept?

Yes. Codes such as zip codes or product codes keep their leading zeros.

Is my file uploaded?

No. It is converted in your browser and nothing is sent or stored.

Related tools