Fixing CSV files that open wrong, lose zeros or refuse to match
Why CSV files land in one column, why ZIP codes lose their leading zero, and how hidden characters break lookups, with a fix for each.
Everything lands in one column
CSV means comma-separated, but spreadsheet apps follow your regional settings. Where the decimal mark is a comma, Excel expects semicolons, so a comma file opens as one long column.
Fix it by converting the delimiter to whatever your spreadsheet expects, or by importing with Data → From Text/CSV and choosing the delimiter yourself. Double-clicking the file skips that choice.
Quotes are not decoration
A field that contains the delimiter, a quote or a line break must be wrapped in double quotes, and a quote inside it is written twice: "Lee, Ana" or "6"" ruler". Search-and-replace on commas breaks these fields, which is why a real CSV parser is needed to change delimiters.
Leading zeros and long numbers disappear
Spreadsheets and many converters guess that 02134 is a number and store 2134. IDs longer than 15 digits get rounded. The CSV file itself is usually fine; the damage happens when something reads it.
When converting to JSON, keep every value as a string and convert only the fields you know are numeric. If the zeros are already gone in a saved spreadsheet, they have to be restored from the original export.
Values that look identical but do not match
Data copied from web pages and PDFs often carries a non-breaking space or a zero-width space. To you, “SKU-1042” looks the same either way; to VLOOKUP, a database or a list comparison they are different values.
Check suspect text for hidden characters, clean them, and then compare the lists again. Cleaning both sides is safer than cleaning one.
Privacy
Exports often contain customer names and emails. These tools parse the text in your browser tab; nothing is uploaded or stored.
Before importing a CSV anywhere
Run it through the CSV validator to catch broken quotes and rows with the wrong number of columns, then check a few values by eye in the preview. Ten seconds here is quicker than undoing a bad import.
Choosing the right CSV tool
Wrong columns in Excel: delimiter converter. Need JSON for code: CSV to JSON. Import keeps failing: validator. Data arrives as JSON but you want a spreadsheet: JSON to CSV. Values that should match but do not: invisible character finder, then compare two lists.