Skip to content
TabKiwiTabKiwi

CSV to JSON

Convert CSV or TSV rows into a JSON array of objects, JSON Lines, or arrays, with optional type detection.

DataRuns in your browser. Your files never leave this device.
Loading tool…

About this tool

Paste a spreadsheet export or open a CSV file and get JSON you can drop straight into code or an API request. Header names become keys, numbers and true/false can be turned into real JSON types, and dotted headers like address.city can become nested objects. Files of tens of megabytes are parsed in chunks right in your browser, so nothing is uploaded and the page stays responsive.

How to use CSV to JSON

  1. Paste CSV text or open a .csv / .tsv file.
  2. Check that the delimiter and header row were detected correctly.
  3. Pick the output shape and how empty cells should appear.
  4. Copy the JSON or download it as a file.

Frequently asked questions

Will ZIP codes like 01234 lose their leading zero?

No. With type detection on, only values that look like proper JSON numbers are converted; anything with a leading zero stays a string.

What is JSON Lines?

One JSON object per line, also called NDJSON. It's popular for logs, streaming and bulk imports into databases and search engines.

Does it handle commas and line breaks inside quoted fields?

Yes. Parsing follows the CSV rules from RFC 4180, so quoted values with commas, quotes or line breaks come through intact.

More Data tools

View all 25 →