Skip to content
hateitall

CSV to JSON

Turn a spreadsheet export into JSON that an API, script or database import will accept.

Processed locallyIn: CSV, TSVOut: JSON

Loading tool…

How to use csv to json

  1. Paste CSV or open a .csv or .tsv file.

  2. Check the detected delimiter and whether the first row is the header.

  3. Choose objects or arrays, how empty cells appear, and whether numbers become real numbers.

  4. Copy the JSON or download it.

What this tool does

  • Reads quoted fields with commas, doubled quotes and line breaks inside them (RFC 4180).
  • Detects comma, semicolon, tab and pipe delimiters.
  • Turns headers like address.city into nested objects.
  • Keeps values such as 007 or 20-digit IDs as text so nothing is silently changed.
  • Renames duplicate headers (name, name_2) so no column is lost.

How the result is verified

The JSON is parsed again before download and its record count is compared with the number of CSV data rows.

Frequently asked questions

Why is my ZIP code still a string?

Values with leading zeros, like 01234, would lose the zero as a number, so they stay text. The same goes for integers too long to store exactly.

My file uses semicolons. Does that work?

Yes. The delimiter is detected from the first rows, and you can set it by hand if detection picks the wrong one.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Flatten JSON arrays into spreadsheet rows with dot path columns

JSON→ CSVLight on device

One sheet per CSV, automatic delimiter detection, and a fresh clean workbook as output.

CSV · TSV→ XLSXLight on device

Beautify or minify JSON with your choice of indentation

JSON→ JSONLight on device

Format, validate, tree view, schema, diff and CSV in one tabbed workspace

JSON · CSV→ JSONModerate on device