Fix Excel and Word File Names Changing to Numbers When Opened
Question details
User needs a solution to stop saved Microsoft Excel and Word documents from automatically renaming themselves to random five-digit numbers when opened.

- Product
- Microsoft Excel, Microsoft Word, OneDrive
- Device & OS
- not provided
- Scenario
- Opening saved documents through the Microsoft 365 Recent Documents list, OneDrive, or local folders with AutoSave enabled.
- Observed behavior
- The original file names are replaced with five-digit numbers, forcing the user to repeatedly rename and save the files using the 'Save As' function.
Before proceeding, check if your OneDrive sync client is up to date and verify whether the issue persists when you open files directly from your computer's local hard drive rather than from cloud shortcuts.
Open Directly from the Local Folder and Use Save As
Bypassing the Microsoft 365 Recent Documents list can prevent temporary file naming glitches caused by OneDrive or AutoSave conflicts.
When files are opened from the Recent Documents list, Office might fetch a temporary cached version from OneDrive, which is often designated by a numerical string.
Opening the file directly from its source folder ensures you are accessing the actual saved file.
Open Windows File Explorer and navigate to the specific local or OneDrive folder where your Excel or Word document was originally saved.
Double-click the file to open it directly from this folder instead of launching Microsoft Word or Excel first and using the 'Recent Documents' list.
If the file name still displays as a number, click on 'File' in the top-left corner, select 'Save As', choose your desired folder, and enter a permanent file name before clicking 'Save'.

Verify OneDrive Synchronization Status
Sync errors or pending uploads in OneDrive can cause Office to open a temporary numbered version of the file to prevent data loss.
Check for Add-in Conflicts
Third-party add-ins can interfere with how Microsoft Office handles file saving and naming, occasionally generating temporary numbered files.
Prevent Cloud Sync Issues with WPS Office
If Microsoft 365 and OneDrive constantly rename your files or cause frustrating sync conflicts, consider switching to WPS Office. It provides a lightweight, highly compatible alternative with seamless local saving and stable cloud management.
- 1. Download and install: Download WPS Office for free from the official website and follow the lightweight installation wizard.
- 2. Set as default: Set WPS Office as your default program for opening Word, Excel, and PDF files to ensure a seamless workflow.
- 3. Open files reliably: Open your existing documents directly. WPS Office will retain your original file names without generating random numerical temporary files.

Frequently Asked Questions
Why do my Excel and Word files save as random numbers?
This typically happens when a file is opened as a temporary file from a cloud cache, or when there is a synchronization conflict between Microsoft Office and OneDrive. The system creates a numbered temporary file to prevent you from losing your unsaved work.
Does AutoSave automatically change my file name?
Under normal circumstances, AutoSave constantly saves changes to the existing file name. However, if the network drops or the sync is interrupted, Office may create a temporary numbered copy so that your ongoing edits are not lost.
How do I stop OneDrive from renaming my files to five digits?
Ensure you are saving files with a specific name using the 'Save As' feature initially. Additionally, keep your OneDrive client updated, ensure you have a stable internet connection while AutoSave is active, and avoid opening files from outdated shortcuts in the Recent Documents list.




