Google Sheets strips leading zeros (02139 -> 2139) and rounds integers past 15 significant digits whenever Automatic type conversion parses a CSV. Inspect and clean your CSV locally in RowDesk first—keeping all identifiers verbatim—then disable automatic number conversion during Google Sheets File -> Import or pre-format columns as Plain text.
Sample CSV input (sheets-leading-zeros-sample.csv)
Synthetic identifier fixture containing 5-digit leading-zero Customer IDs (00419), Boston/Hoboken ZIP codes (02139, 07030), and a 16-digit numeric string (9007199254740997).
CustomerID,PostalCode,FullName,Country 00419,02139,Hannah Cho,US 9007199254740997,07030,Marcus Vega,US
1. Understand why Google Sheets drops leading zeros and 16+ digit trailing bits
First-party documentation check (support.google.com/docs): Google Sheets stores unformatted numeric imports using IEEE 754 floating-point numbers (15 digits max significant precision). Opening a raw CSV with automatic parsing strips leading zeros (00419 becomes 419, 02139 becomes 2139) and permanently truncates 16+ digit identifiers (9007199254740997 loses precision).
Once saved back to CSV after automatic coercion, those lost digits cannot be restored by simply changing visual cell display formatting (00000) later. Clean, deduplicate, or edit identifier-heavy CSVs first in RowDesk's CSV Editor Online or CSV Cleaner, which preserve every identifier strictly as text.
2. Step-by-step safe import workflow & expected cell result
To bring sheets-leading-zeros-sample.csv safely into Google Sheets without corrupting values: open a blank Google Sheet, choose File -> Import -> Upload, uncheck Convert text to numbers, dates, and formulas before confirming, OR highlight target columns first and set Format -> Number -> Plain text prior to pasting.
| CSV Field | Raw Value | Default Sheets Open (Broken) | File > Import (Convert Unchecked) / RowDesk |
|---|---|---|---|
CustomerID (Row 1) | 00419 | 419 (leading zeros stripped) | 00419 (exact string preserved) |
CustomerID (Row 2) | 9007199254740997 | 9.0072E+15 (last digits lost) | 9007199254740997 (exact 16 digits kept) |
PostalCode | 02139, 07030 | 2139, 7030 | 02139, 07030 |
- Do not double-click or auto-convert identifier CSVs before formatting target columns as Plain text.
- Edit headers or cells safely beforehand inside CSV Editor Online.
- Re-verify leading zeros using CSV Data Quality Checker after any spreadsheet export.
