How to Fix a 404 Error When Opening Excel Files in Office Online
Question details
The user encounters a '404 file or directory not found' error when attempting to open an Excel file via the Office web viewer, even though the file opens correctly in other web browsers.

- Product
- Excel / Office Online
- Device & OS
- not provided
- Scenario
- Clicking a link to view or edit an Excel document using the Office Online web viewer in a browser like Microsoft Edge.
- Observed behavior
- The browser fails to load the spreadsheet and instead displays a 404 error page, indicating the file or directory cannot be found.
Ensure you have a stable internet connection and verify that the Excel file has not been moved, renamed, or deleted from its original server or cloud storage location by the file owner.
Disable Office File In-Browser Viewing in Microsoft Edge
Turning off the default Office viewer in Edge forces the browser to download the file directly, bypassing the web viewer 404 error entirely.
Microsoft Edge has a built-in feature that attempts to open Office documents automatically using Office Online. When there is a caching glitch, credential mismatch, or URL routing issue, this feature can trigger a false 404 error. Disabling it allows you to download the file and open it locally.
Click the three horizontal dots (...) in the top-right corner of your Microsoft Edge browser and select 'Settings' from the dropdown menu.
In the left-hand sidebar of the Settings menu, click on 'Downloads'.
Locate the toggle switch for 'Open Office files in the browser' and turn it off.
Close Microsoft Edge, reopen it, and click the Excel file link again to download the file.

Clear Browser Cache and Verify File URL
Clearing corrupted browser data ensures that your browser isn't loading an outdated or broken version of the Office Online viewer page.
Edit Excel Files Smoothly Offline with WPS Office
Avoid browser-based 404 errors and web viewer glitches entirely by using a dedicated desktop application. WPS Office is a highly compatible, free alternative to Microsoft Office that lets you view, edit, and save your Excel spreadsheets seamlessly without relying on the Office Online web viewer.
- 1. Download and Install: Get the free WPS Office suite from the official website and install it on your device.
- 2. Download the Broken File: Right-click the problematic Excel link in your browser and select 'Save link as...' to download the spreadsheet to your computer.
- 3. Open with WPS Spreadsheet: Double-click the downloaded file to instantly open and edit it in WPS Office without needing an internet connection.

Frequently Asked Questions
Why does the Excel file open in Chrome or Firefox but give a 404 error in Edge?
Microsoft Edge has a deeply integrated, built-in feature to automatically route Office file links through the Office Online web viewer. If there is a sync issue, corrupted cache, or credential mismatch in Edge, it may throw a 404 error, whereas other browsers like Firefox might simply trigger a standard file download.
What does '404 file or directory not found' mean in Office Online?
This error means the Office web viewer cannot locate the specific file at the requested URL. This typically occurs if the file was deleted by the owner, the sharing link has expired, or your browser's caching mechanism is attempting to route you to an outdated or incorrect file path.
Can I bypass the web viewer entirely and just download the Excel file?
Yes. By navigating to your browser's download settings and disabling the 'Open Office files in the browser' option, clicking any Excel file link will prompt a standard file download instead of attempting to render it in the online viewer.




