Skip to main content
amerta.app

How to Fix Corrupted CSV & Excel Leading Zeros Offline Without Uploading Data

Stop Excel from stripping leading zeros on IDs, ZIP codes, and tax numbers, and fix broken UTF-8 or semicolon CSV files 100% offline in your browser.

Published: Updated: 7 min read

Few data headaches waste more administrative time than opening a CSV export in Excel only to watch national IDs, tax numbers, phone numbers, and postal codes silently break. A 16-digit employee or citizen ID turns into scientific notation (3.27501E+15), leading zeros vanish (00419 becomes 419), or every column collapses into a single messy line full of semicolons (;) and garbled characters (é, –).

Worse still, many employees paste payroll rosters, customer invoices, or tax filings into random “free online CSV converter” websites—unintentionally uploading sensitive personal data (PII) to unknown third-party servers. In this guide, you will learn why spreadsheets corrupt plain-text exports and how to clean delimiters, encoding, and leading zeros safely inside your browser with SheetRescue, which runs 100% offline with zero file uploads.

Why Excel Corrupts CSV Files When Double-Clicked

Comma-Separated Values (.csv) is a plain-text format. Unlike .xlsx, a .csv file carries no column type metadata—it cannot tell Excel “column B is a text identifier, not an integer.” Whenever you double-click a .csv file directly from Windows Explorer or macOS Finder, Excel applies automatic type inference and regional defaults that frequently guess wrong:

  1. Aggressive Numeric Parsing: Any string containing only digits is cast to an IEEE 754 double-precision floating-point number. Excel drops leading zeros immediately (08123456789 becomes 8123456789).
  2. 15-Digit Precision Truncation: Standard floating-point numbers only retain 15 significant digits accurately. Once an ID, barcode, or tax number reaches 16+ digits, Excel rounds the trailing digits to zeros (1234567890123456 becomes 1234567890123450). Clicking “Format Cells -> Text” after opening the file cannot restore digits that were already rounded away upon import.
  3. Regional Delimiter Mismatch: In North America and the UK, CSV files separate columns with commas (,). Across much of Europe and Indonesia, regional Windows settings tell Excel to expect semicolons (;). If an exported CSV uses commas while Excel expects semicolons, the entire row dumps into Column A.
  4. Missing UTF-8 BOM (Byte Order Mark): Modern web tools export UTF-8 text without a 3-byte BOM header (0xEF 0xBB 0xBF). Older desktop Excel versions assume Windows-1252/ANSI encoding when no BOM is present, turning accented names, currency symbols, or em-dashes into mojibake text.

Common Symptoms & Exact Root Causes

Broken Output in Spreadsheet Actual Technical Cause Safe Repair Strategy
00912 displays as 912 Double-click auto-cast numeric column Parse original raw file as text strings; export XLSX with explicit text cell types
3275010101900014 displays as 3.27501E+15 Scientific display + 15-digit float truncation Recover from untouched original export before Excel saved over it
All fields stuck in Column A (id;name;tax) Comma vs. semicolon regional delimiter mismatch Auto-detect delimiter and normalize to clean RFC 4180 CSV or native XLSX
José becomes José UTF-8 bytes decoded as Windows-1252 Re-encode text cleanly and prepend UTF-8 BOM for desktop Excel
Stray line breaks shatter rows Unquoted newlines inside address/note fields Normalize multiline quoted fields before opening in spreadsheet software

Why Uploading Sensitive Spreadsheets to Cloud Converters Is Risky

When a CSV breaks five minutes before a tax or payroll deadline, searching for an instant fixer is tempting. However, ordinary server-based conversion sites send your entire file across the internet to an external backend—creating real compliance risks under GDPR, company IT policies, and national personal data protection laws (such as Indonesia’s UU PDP):

  • Unverified retention: You cannot verify whether uploaded tax IDs, salaries, or phone numbers are logged, cached, or retained in object storage backups.
  • Shadow IT exposure: Sensitive HR, vendor, or customer lists leave your internal boundary over third-party infrastructure.

SheetRescue was built specifically for sensitive spreadsheets: all file parsing, delimiter normalization, UTF-8 repair, and XLSX cell formatting occur locally in your browser’s memory via client-side Web APIs. You can literally disconnect Wi-Fi after loading SheetRescue and verify in DevTools Network tab that zero bytes of your file are transmitted.

Step-by-Step: Repairing Broken CSV Exports Without Losing Leading Zeros

Before touching the file in Excel, make sure you are starting from the original raw .csv or .tsv export downloaded from your banking portal, CRM, HR platform, or tax system. (Tip: Never click “Save” in Excel over a raw CSV that already turned 16-digit IDs into E+15, because Excel writes the truncated zeros permanently back to disk.)

Step 1: Load the Raw Export Locally

Open Preserve Leading Zeros in a modern browser. Drag and drop your raw .csv or .txt export directly into the local workspace. Nothing leaves your computer.

Step 2: Inspect Delimiters and Character Encoding

If columns look collapsed or characters look scrambled, review the live local preview:

  • Switch or auto-detect between comma (,), semicolon (;), tab (\t), or pipe (|) delimiters using Fix UTF-8 & Semicolon CSV.
  • Confirm that accented letters, currency signs, and punctuation render cleanly without à artifacts.

Step 3: Lock Identifier Columns as Explicit Text

Mark columns containing national IDs, tax IDs (such as NPWP/EIN/TIN), SKUs, ZIP/postal codes, and phone numbers as Text before export. Unlike plain CSV, exporting to native .xlsx (or properly UTF-8 BOM encoded CSV with explicit string rules) writes string cell types directly into the workbook XML so Excel displays 00419 and full 16-digit IDs intact the moment you open it.

Step 4: Export a Clean Workbook or Standardized CSV

Download your repaired result via Safe XLSX / Clean CSV Export. Always inspect one or two sensitive rows to verify leading zeros and the final two digits of 16-digit IDs remain untouched.

Preventive Habits for Teams Handling Exports Regularly

  • Prefer .xlsx for distribution to non-technical teammates: Double-clicking .xlsx respects explicit string cell types, whereas double-clicking .csv triggers Excel’s guessing engine.
  • If a system strictly requires .csv upload: Include a UTF-8 BOM when sharing with Windows Excel users, wrap fields containing commas or line breaks in double quotes ("..."), and keep a copy of the untouched source export until downstream upload succeeds.
  • Keep raw downloads read-only: Rename source files with _RAW before inspecting them in desktop spreadsheets so accidental Ctrl+S saves never overwrite critical digits.

Summary

Spreadsheet corruption around leading zeros, 16-digit truncation, and broken semicolons happens because plain CSV lacks column schemas and encoding headers—not because your source export is broken. By avoiding double-click auto-import and repairing files locally in SheetRescue, you restore clean columns and protect sensitive data 100% offline with zero uploads.

Related Utility • sheet.amerta.app

SheetRescue

Repair broken CSV delimiters, UTF-8 mojibake, and stripped leading zeros on ID/tax columns completely offline—your spreadsheets never leave your device.

100% Offline • Zero Upload • Anti-Corrupt