How to keep leading zeros in a batch QR code CSV

Preserve identifiers such as 00123 by treating them as text and checking the exported file.

Set the data column to text before entering or importing an identifier. Then verify the exported CSV still contains the zeros. A spreadsheet's display can differ from the value it saves.

Keep the identifier as data

Treat a product or member ID as a string when its leading zeros distinguish it from other IDs. If a spreadsheet has already discarded them, restore the values from an original list or an established width rule.

Compare two otherwise identical IDs

  1. Enter 00123 and 123 as text in two rows and assign different filenames.
  2. Export UTF-8 CSV. Open it in a text editor and check that the content values differ.
  3. Generate and read both QR images. Confirm one says 00123 and the other says 123.

If a format shows the zeros but export loses them

Convert the displayed identifier into actual text in the source sheet. Export again and inspect the file rather than relying on a custom number format.

Frequently asked questions

Does quoting numbers always prevent spreadsheet conversion?

Spreadsheet import behavior can vary. Explicitly select text for the identifier column when reopening the CSV.