CSV to JSON Converter
Turn spreadsheet rows into JSON while keeping identifiers, quoted notes and empty cells intact.
The source and converted records stay in this tab.
JSON output
Convert the CSV to check your records here. Identifiers and other cells keep their original text.
What happens to an inventory ID?
Choose Try sample and convert the two stock records. The first identifier stays 0017, and its quoted note becomes one string, rack A, bin 2. The second identifier keeps all 16 digits of 9007199254740993. Its note reads mark "ready".
Choose the JSON structure your importer expects
Objects use the first row as field names. Each name must be unique and nonblank, and every data row must match the header width. A table containing only valid headers produces an empty array.
Positional rows retain the first row as data, repeated headings and rows of different lengths. Use this for headerless tables or to inspect inconsistent exports before assigning names.
Exercise: preserve identifiers and every cell
- Open the CSV with unique headers in the converter. Choose Objects from header row, then compare your download with the expected JSON records. Check that the IDs are strings, the quoted comma stays in its cell, and the quoted line break stays inside one record.
- Open the CSV with repeated headers and a short row. Objects mode flags the repeated name in header column 3. If you give that column a unique name, it then flags the short third record. Choose Positional rows and compare the download with the expected JSON arrays. The repeated heading and short row both remain.
Check the original export
The converter keeps the text present in the file. If a spreadsheet already removed leading zeros or rounded an identifier, export again from the original data with that column stored as text.
You may reuse these synthetic files in lessons and tests. Microsoft explains how to keep identifiers as text in Excel.
Delimiters, quotes and local files
Select the separator used in your export. Commas inside quoted fields, doubled quotes and quoted line breaks are supported. A blank field becomes an empty string. Text such as false, null and 12.50 retains its original spelling.
Open one UTF-8 source up to 1 MiB, with up to 10,000 output records and 250 columns per record. Generated JSON can be up to 4 MiB. To process larger tables, split at complete records and retain the header in each object-mode batch.
Working in the other direction?
To take JSON records into a spreadsheet, use the JSON to CSV Converter. Choose the fields to export and check the resulting columns before import.
To find what changed between two exports, compare the CSV files by a shared key before converting either file.
Format references cover CSV quoting and record structure and JSON strings, objects and arrays.