Skip to main content

Excel type-conversion problem

Preserve Leading Zeros When Converting CSV to Excel

Keep ZIP codes, phone numbers, SKUs and account identifiers as text during CSV-to-Excel conversion.

Use the matching tool

CSV to Excel

Open CSV to Excel

What the error actually means

Spreadsheet software infers cell types. A CSV value such as 00127 may be converted to numeric 127 unless the output column is treated as text. Long identifiers can also appear in scientific notation or lose precision.

Likely causes

  • Identifier columns were inferred as numbers.
  • The source zeros were already lost.
  • Long numeric strings exceed spreadsheet precision.
  • The workbook was resaved after automatic conversion.

Identifier as text

Problem

00127 becomes 127

Correct pattern

00127 stored and displayed as text

A safe repair workflow

  1. 1Inspect the original CSV text first.
  2. 2Identify all non-arithmetic numeric-looking columns.
  3. 3Convert and verify those columns in the workbook.
  4. 4Re-export a sample to confirm the values remain exact.

How to verify the result

A file that downloads successfully is not automatically a correct file. Check the result at both the structural and business-data levels:

  • Leading zeros remain.
  • Long IDs match character for character.
  • Phone plus signs survive.
  • Arithmetic columns still behave numerically.

Read the deeper guides