Excel turns anything that looks like a number into a number, dropping leading zeros and showing long codes in scientific notation. This page is about stopping that: CSVMend finds code columns — postcodes, EAN codes, VAT numbers, internal references — and saves them as text in .xlsx or with the Excel guard in CSV, so the zeros survive every reopening. If the damage is already done, recovering EAN codes has a page of its own.
How to clean a CSV file in 3 steps
- 1
Load the file
Drop a CSV, TSV or Excel file. Encoding and delimiter are detected automatically.
- 2
Check the preview
Toggle rules on and off and see exactly what changes, cell by cell, in real time.
- 3
Download the result
Export to CSV (UTF-8, with or without BOM) or Excel .xlsx with code columns stored as text.
What CSVMend fixes
Corrupted accents and symbols
Detects UTF-8, Windows-1252 and ISO-8859-1 and fixes sequences like é, è, €.
Leading zeros
Protects ZIP codes, EANs, VAT numbers, bank codes and phone numbers, and restores zeros Excel already removed.
Delimiters and formats
Converts between comma, semicolon, tab and pipe; normalises dates and decimal separators.
Messy spaces and rows
Removes extra spaces, line breaks in cells, invisible characters, empty and duplicate rows.
Total privacy: your data stays on your computer
CSVMend is a 100% client-side application. Your file is read and processed in your browser’s memory with JavaScript: there is no server receiving it, it is never stored in a database and never shared with third parties. You can even go offline after loading the page and the tool keeps working. Ideal for price lists, customer records and bank statements covered by GDPR.
Frequently asked questions
Why does Excel delete leading zeros?
Because it reads anything that looks like a number as a number, and for a number a leading zero carries no value. 02108 becomes 2108, and a thirteen-digit EAN turns into scientific notation like 8.04483E+12. The damage happens when the CSV is opened, not when it is saved.
How can you rebuild an EAN that lost its zeros?
By using the check digit every EAN carries: the padding is kept only when that digit works out. ZIP and VAT numbers, which have none, rely on the column’s dominant length instead. The page on recovering EAN codes walks through the method and says when a code is gone for good.
What is the CSV Excel guard?
It writes the cell as ="02108", which Excel opens as text and leaves the zeros alone. Use it only when you must deliver a CSV: if you can choose, the .xlsx export with code columns stored as text is cleaner and adds nothing to the value.
Can I protect a column detection missed?
Yes. Every column in the table has a padlock, and the fixes panel lists all columns with a checkbox each: you can add internal codes or serial numbers no detection could guess.
Is my file uploaded to a server?
No. All processing happens in your browser. The file never leaves your device and no data is stored.
Is CSVMend free?
Yes, it is free and needs no sign-up. The service is supported by non-intrusive ads.