Converting an Excel CSV export to JSON rarely throws an error—instead, it silently corrupts fields that only surface days later in production.
1. The Invisible UTF-8 BOM (\uFEFF) on Column 1
Excel's "CSV UTF-8" export prepends EF BB BF. If your parser doesn't strip \uFEFF, the first header becomes "\uFEFFid", making row.id evaluate to undefined even though Object.keys(row) looks normal in logs.
2. Stripped Leading Zeros
Auto-typing 02138 (postal codes), 00412 (SKUs), or phone numbers as numbers quietly drops leading zeros.
3. 64-Bit Snowflake / Order ID Precision Loss
JavaScript's IEEE 754 Number loses integer precision past 9007199254740991 (16 digits). Coercing 18- or 19-digit Snowflake IDs into numbers silently rounds the final digits into completely different IDs.
4. Commas & Newlines Inside Quoted Fields
Naive line.split(",") breaks immediately on address fields or multi-line notes wrapped in RFC 4180 quotes.
Client-Side Tools (Keep Private CSV Exports Strictly in Browser Memory)
- CSV <-> JSON Converter (0B upload): https://global-utils.com/en/csv-json-converter
- JSON Formatter & Validator: https://global-utils.com/en/json-formatter
- Diff Checker: https://global-utils.com/en/diff-checker
Top comments (0)