CSV to JSON Converter

Convert CSV to JSON, or JSON back to CSV, with automatic delimiter and header detection.

Runs in your browser · nothing uploadedFree · no sign-up

About CSV to JSON Converter

This free CSV to JSON converter turns spreadsheet exports and data files into clean JSON in one step. Paste the CSV or drop the file, and the result appears as you type. It reads comma, semicolon, tab and pipe separated files, and it understands quoted fields, so a value like "Smith, John" stays in one piece.

By default the first row becomes the property names and every other row becomes an object. You can instead keep the data as an array of arrays, switch the first-row header off, minify the output or choose the indentation. A second mode converts JSON back to CSV, ready for Excel or Google Sheets. Everything runs in your browser, so your data is never uploaded.

How to use CSV to JSON Converter

  1. 01

    Paste your CSV or drop a file.

  2. 02

    Check the delimiter, header and type options.

  3. 03

    Copy or download the JSON.

When to use it

  • Turning a spreadsheet export into JSON for an API, a script or a database import.
  • Preparing sample data for a front-end prototype or a test.
  • Reading a semicolon-separated export from a regional version of Excel.
  • Converting an API response in JSON back to CSV so it can be opened in a spreadsheet.
  • Cleaning up a data file: the preview shows the row and column counts and warns about uneven rows.

Frequently asked questions

How do I convert a CSV file to JSON?

Paste the CSV or drop the file. The JSON appears instantly. The first row is used for the keys, and you can turn that off if your file has no header.

Why do some numbers stay as text?

Values with leading zeros (such as 007 or a phone number) and numbers longer than 15 digits are kept as text on purpose, because converting them would change or corrupt them. You can also switch type conversion off completely.

My file uses semicolons. Will it work?

Yes. The delimiter is detected automatically from the first lines, and you can also choose comma, semicolon, tab or pipe yourself.

How do I open the CSV in Excel with Arabic text?

When converting JSON to CSV, tick the option to add a BOM. It tells Excel the file is UTF-8, so Arabic letters display correctly instead of garbled characters.

What happens to nested JSON when converting to CSV?

CSV is flat, so nested objects and arrays are written into the cell as JSON text. Columns are the union of all keys found in the objects.

Is there a size limit, and is my data uploaded?

Files up to 10 MB can be loaded. The conversion runs entirely in your browser, so nothing is uploaded.

More Developer Tools

View all

Other categories