Excel to CSV Converter That Keeps Leading Zeros
Open an .xlsx file and get a CSV with the values as Excel shows them: ZIP codes with their leading zeros, dates as yyyy-mm-dd, IDs and phone numbers as typed. One sheet, or all of them in one ZIP. Free, in your browser, nothing uploaded.
Your Excel file
The converter needs JavaScript.
Values as Excel Shows Them
An .xlsx file stores a ZIP code like 00501 as the number 501, plus a format that tells Excel to show five digits. A converter that reads only the number writes 501, and the address no longer matches. This one reads the format too and writes 00501.
Dates are stored as day counts, so 5 November 2026 is 46331 inside the file. The converter turns them into 2026-11-05, or into the format the cell shows. Text stays text: an 18-character Salesforce ID or a phone number typed with its leading zero arrives as typed.
ZIP 501 format 00000 → 00501
Created 46331 format date → 2026-11-05
ID 0015g00000NbCdEAAV → as typedTry a Real Workbook
Each opens a sheet of an example workbook with the problems real exports have.
- Example
A Lead List With ZIP Codes
Three leads with ZIP codes formatted as 00000, a date and a date with time, umlauts in names and companies.
- 3leading zeros kept
- 2date columns as ISO
- 0files uploaded
- Salesforce
IDs and Long Numbers
Account IDs as text, and a legacy ID that Excel had already cut to 15 digits.
- Merged
One Region, Two Rows
A region merged over two accounts, filled into both rows.
- Dates
Date and Time in One Cell
The last activity of each lead, with its time.
- Hidden
A Hidden Lookup Sheet
A sheet you cannot see in Excel until you unhide it.
Ready for a Salesforce Import
Ready for Salesforce sets three things at once: a comma between values, dates as yyyy-mm-dd and date-times as yyyy-mm-ddThh:mm:ss, and UTF-8 without a byte order mark. Salesforce’s import tools read UTF-8, and Data Loader reads these date forms without its European date setting.
The CSV keeps the used range of the sheet, from the first to the last cell with a value. Check that the first row holds your column names before you map the fields.
- 18-character IDs stay exactly as typed
- Postal codes keep their leading zeros
- Percentages arrive as 12.5 for 12.5 %, as Percent fields expect
- Times are written without a time zone; to convert them, use the Salesforce date converter
Email,ZIP,Created
anna.berg@example.com,00501,2026-11-05
juergen.mueller@example.com,02134,2026-10-30Convert Excel to CSV in Four Steps
From a workbook to a file any system can import.
- 1
Open the File
Open an .xlsx or .xlsm file of up to 50 MB. It stays on your device.
- 2
Pick the Sheet
The first visible sheet shows at once; hidden sheets are in the list too.
- 3
Set the Format
Separator, dates and encoding, or Ready for Salesforce in one click.
- 4
Download the CSV
One sheet as a CSV, all sheets as a ZIP, or copy the text.
What It Reads, Read Locally
The rules behind each value, and where the converter stops.
- 50MB per file, read in your browser
- 50Rows in the preview
- 0Bytes uploaded
- Number formats. A format made of digits and punctuation, such as 00000 or 000-00-0000, is applied. Percentages are written as the percent number, 12.5 for 12.5 %. Other numbers are written in full, without thousands separators, currency or units, and never rounded to the decimals the cell shows.
- Dates. Both of Excel’s date systems, 1900 and the 1904 one of older Mac files, including 29 February 1900, a day Excel counts although it never existed. Excel’s standard date format follows each computer’s date order, so “As shown in Excel” writes it as yyyy-mm-dd. Durations such as 36:00:00 stay as Excel shows them.
- Formulas. Each formula gives the result Excel saved with the file. A formula without a saved result is reported, with the first cell it is in.
- Merged cells and hidden parts. A merged value stays in the first cell, or fills the range if you tick the box. Hidden rows are included and hidden sheets can be picked, as Excel would export them.
- Formula guard. A value that starts with = gets an apostrophe in front, so a spreadsheet shows it and never runs it. Values such as +49 30 or -5 stay as they are. Ready for Salesforce writes values that start with = unchanged, so the import stores them as typed.
- Not read. The old .xls format, .xlsb, .ods and workbooks with a password. Save them as .xlsx in Excel first.
Excel to CSV FAQ
Short answers to what people ask when a spreadsheet has to become a CSV.
How do I convert Excel to CSV without losing leading zeros?
Open the file above. When a cell shows its zeros through a format such as 00000, or holds the number as text, the CSV gets the zeros exactly as Excel shows them.
Why do long numbers turn into 1.23E+17 or end in zeros?
Excel keeps 15 digits of a number. A longer one, such as a card number or an 18-digit ID typed as a number, lost its last digits when it was typed or imported. The converter writes every digit the file still has, never 1.23E+17, and names the cells affected. Store such values as text at the source.
How do I save every sheet of a workbook as CSV?
Excel saves only the sheet you are on. Here, Download All Sheets gives one ZIP with a CSV for each sheet, hidden sheets included.
Why are umlauts and accents broken in my CSV?
The CSV was saved in an older code page instead of UTF-8. This converter always writes UTF-8. Keep the byte order mark if the file will be opened in Excel, which needs it to read umlauts and accents.
Should the CSV use commas or semicolons?
It depends on where the file goes. An Excel set to German, French or another language with a decimal comma expects semicolons; Salesforce and most other systems expect commas.
Which date format does Salesforce Data Loader accept?
yyyy-mm-dd for dates and yyyy-mm-ddThh:mm:ss for a date with time, which Ready for Salesforce writes. Day-first dates such as 05.11.2026 need Data Loader’s European date setting.
Can it read .xls files?
No. It reads .xlsx and .xlsm. Open an .xls file in Excel and save it as Excel Workbook (.xlsx) first.
Is my file uploaded?
No. The workbook is unpacked and converted in your browser. Nothing is sent or stored, and nothing from it reaches analytics.
More Free Tools
We Make Salesforce Marketing Work for You
Talk to a certified consultant, not a salesperson, and leave the first call knowing your next step.