Free CSV fixer · no sign-up

Keep leading zeros in Excel from CSV: keep every leading zero and every digit

Postcodes, article numbers and long IDs keep every digit; prices and amounts stay numbers you can add up.

Keep leading zeros and long numbers from a CSV

Why CSV files open wrong in Excel

How Excel loses digits

On a double-click Excel turns anything that looks like a number into one: 02134 becomes 2134, an EAN becomes 4.00638E+12, and a 16-digit card or order ID loses its last digit for good, because Excel keeps only 15. This tool spots codes (leading zeros, 12+ digits of one length, +phone numbers) and stores them as text, so nothing changes.

How to do it

What happens to your file

Opens in your browser; your file stays on your device. Nothing is uploaded, and nothing about it goes into links.

Opens in your browser; your file stays on your device. Nothing is uploaded, and nothing about it goes into links.

  • Read on your device

    The fixer is a program inside this page. Your file goes from your disk into it, and nowhere else.

  • Nothing kept

    Close the tab and it's gone. We never have a copy, so there's nothing to delete.

  • Checked, not guessed

    Before you can download, the page reads its own Excel file back and compares every cell with your CSV.

The details: Open a CSV in Excel with columns

Questions

How do I keep leading zeros when opening a CSV in Excel?

Drop the CSV here and download the .xlsx: columns with leading zeros are stored as text, so 02134 stays 02134. Amount columns are still real numbers.

Why does Excel show my numbers as 1.23E+15?

Numbers with more than 11 digits are shown in scientific notation, and from 16 digits Excel drops digits. Here such codes are kept as text, every digit intact.