CSV to JSON

Convert delimited files into typed JSON records.

Drop a CSV or TSV file and get a JSON array with one object per row, keyed by the header. Plain numbers become JSON numbers and TRUE/FALSE become booleans, while codes with leading zeros and very long IDs stay as strings so they are never altered.

Price
Free
Your files
Never uploaded
Runs
In your browser

or drag it here

.csv, .tsv, .txt · up to 50 MB · processed locally, never uploaded

Excel and spreadsheet files only. Export from Google Sheets as .xlsx or .csv.

Files stay on your device

What it does well

  • Quoted fields with embedded delimiters and line breaks read correctly
  • Numbers and booleans typed, leading-zero codes and long IDs kept as text
  • Duplicate header names get a suffix so no value is overwritten

How to use CSV to JSON

  1. 1

    Upload your .csv, .tsv or .txt file.

  2. 2

    Set the header row (row 1 for most files).

  3. 3

    Choose pretty or minified output, typed values and whether to omit empty cells.

  4. 4

    Press Convert and download the .json file.

Common problems and fixes

Everything ends up in one key.

The delimiter was not detected. Save the file with a comma, tab or semicolon delimiter and a .csv or .tsv extension.

A 19-digit ID came out as a string.

That is deliberate: JSON numbers cannot hold more than 15 significant digits exactly, so long IDs are kept as text.

Frequently asked questions

More convert tools

Move data between XLSX, CSV, JSON, XML, HTML and PDF without losing formatting, encoding or number precision. Every conversion runs locally in your browser.

Browse Convert