Turning CSV into JSON without changing your data
CSV and JSON look like they hold the same thing, a list of records, but they disagree about what a value is. In a CSV file every cell is text. The file has no way to say that 42 is a number and 02139 is a postcode. JSON does have types, so whoever converts one into the other has to decide what each cell means. Most converters decide by guessing, and the guesses are where data goes wrong.
The classic failure is the leading zero. A converter that sees 02139 and thinks "number" writes 2139, and the Boston postcode is gone. The same thing happens to product codes, phone numbers with a leading zero and account numbers. A second failure is length. JavaScript stores numbers as 64-bit floating point, which holds whole numbers exactly only up to 9,007,199,254,740,991. An order ID of 12345678901234567890 turns into 12345678901234567000 when it is read as a number, and nothing tells you.
This tool makes the guessing narrow and visible. With typed values on, a cell becomes a number only when it is written the way JSON writes numbers: an optional minus sign, no leading zero, an optional decimal part and exponent. True and false, in any capital letters, become booleans. An empty cell becomes null. Everything else, including 02139, +44 20, 1,000 and any integer past the safe limit, stays text. If even that is too much, choose every value as text and the JSON holds exactly the characters that were in the file.
The header row needs care too. Spreadsheets are happy with two columns called Name or a column with no name at all, but a JSON object cannot hold the same key twice. The tool names an empty header column_N, after its position, and adds _2 to a repeated name, then lists each change in the notes. Rows that are shorter than the header are filled with empty values so every object has the same keys. Rows that are longer keep their extra cells under numbered keys instead of losing them.
Reading the CSV correctly comes first. The separator is found by checking which of comma, semicolon, tab and pipe splits the first rows into an equal number of columns. Counting characters is not used, because a comma file full of addresses can hold more semicolons than commas. Quoted cells may contain the separator, line breaks and doubled quote marks. A quote that never closes stops the conversion with its row and line, so you can fix it instead of getting one enormous cell. The whole job runs in a worker on your device and nothing is uploaded.