ownbarcode / Guides

Keep leading zeros in Excel barcode numbers

Treat an identifier as text from the start. The code 00123456 is not interchangeable with 123456 when your inventory system expects eight characters.

Updated 26 November 2026

Follow these steps

  1. Format the column first

    Select the barcode column in Excel, open Format Cells and choose Text. Do this before typing or pasting the codes. On Excel for the web, use the Text category in Format Cells.

  2. Enter the original identifier

    Paste the value from your stock system or product record. Check the formula bar as well as the displayed cell. Do not guess how many zeros a retail GTIN needs.

  3. Separate a display issue from lost data

    A cell may show scientific notation while still retaining an exact shorter number. A long identifier may instead have been rounded. Changing the display format after data loss cannot reconstruct the original digits.

  4. Check after import

    Import the workbook into the bulk tool. Compare a few imported values with the original list before downloading labels. The importer preserves Text cells and zero-padding from supported Excel formats.

Three cases to recognise

What you seeWhat to check
00123456Keep it as Text and verify all eight characters.
8.90E+11Inspect the underlying value; the short display alone does not prove digits were lost.
A 16+ digit number stored as numericRestore the source identifier as Text. Excel numeric precision is limited.

Avoid automatic repairs

Only pad a code when your own identifier specification gives an exact length. Adding a zero to make a retail barcode pass a length check can turn it into a different identifier. A valid check digit also does not establish that you own the number.

Common questions

Will a barcode font restore the missing digits?

No. A font or image generator encodes the value supplied to it. Restore the correct input first.

What if an Excel formula creates the identifier?

Copy the completed values into a Text column and verify them against the source before import. ownbarcode does not evaluate workbook formulas.

Sources and checks

Sources checked on 26 November 2026. Tool steps describe the current ownbarcode workflow.