How to Stop Excel from Changing CSV Files and Adding Commas
Question details
Users need to stop Excel from automatically altering data, adding commas, and dropping leading characters when saving exported CSV files.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Opening, editing, and saving a CSV file that was originally exported from another application or database.
- Observed behavior
- When the user saves the CSV file, Excel reformats values, adds unwanted commas, removes leading characters like zeros, or completely alters cell data.
Before making any changes to your CSV file in Excel, always create a copy of the original raw file so you have a safe backup if data formatting is lost.
Adjust Excel's List Separator Settings
Modify Excel's advanced editing options to ensure the program correctly interprets system separators instead of adding unwanted commas.
Since CSV relies on specific delimiter characters, Excel's default decimal and list separator settings can sometimes conflict with your file's structure. Adjusting the system separators tells Excel exactly how to handle commas and decimals during the save process.
Launch Microsoft Excel, click on the 'File' tab in the top left corner, and select 'Options' at the bottom of the menu.
In the Excel Options dialog box, click on 'Advanced' in the left-hand sidebar.
Scroll down to the 'Editing options' section. Uncheck the box that says 'Use system separators'. Manually enter your preferred 'Decimal separator' and 'Thousands separator' to ensure they do not conflict with your CSV structure.
Click 'OK' to apply the changes. Open your CSV file, make your edits, and save it. Open the newly saved CSV in Notepad to verify that unwanted commas have not been added.

Save the File as an Excel Workbook (XLSX)
Convert your CSV file to a standard Excel Workbook format to ensure all data types, formatting, and leading zeros are preserved.
Manage Data Accurately with WPS Office
If Excel continues to aggressively reformat your CSV files and strip leading characters, consider switching to WPS Office. WPS Spreadsheet provides powerful text import tools that give you full control over how plain-text data is formatted, ensuring your CSVs remain exactly as you intended.
- 1. Download and Install: Download WPS Office for free from the official website and install it on your computer.
- 2. Open Your CSV Safely: Launch WPS Spreadsheet, go to Menu > Open, and select your CSV file.
- 3. Set Column Formats: Use the import prompts to format specific columns as 'Text', ensuring leading zeros and raw characters are perfectly preserved.

Frequently Asked Questions
Why does Excel remove leading zeros from my CSV files?
Excel automatically detects data types to be helpful. If a column contains numbers, Excel treats it as a numeric value and drops the leading zeros. To prevent this, you should import the CSV via the 'Data' tab and manually set that specific column to 'Text'.
Can I save multiple sheets in a single CSV file?
No. The CSV format is a flat, plain-text file that does not support multiple worksheets. When you save a workbook as a CSV in Excel, only the currently active worksheet is saved. You must save each sheet as its own separate CSV file.
How do I change the default list separator in Windows?
You can change your system-wide list separator by opening the Windows Control Panel, navigating to 'Region', clicking 'Additional settings', and updating the 'List separator' character. Excel relies on this system setting when determining how to parse or save CSV files.
What is the difference between CSV and XLSX formats?
CSV (Comma Separated Values) stores raw tabular data in plain text without any formatting, colors, or formulas. XLSX is the native Microsoft Excel format that preserves all workbook formatting, macros, complex formulas, and multiple worksheets.




