Fix Office Online Viewer URLs and Unsupported File Types
Question details
The user needs to determine why Office Online Viewer cannot open a document URL or file type.

- Product
- Microsoft Office Online Viewer
- Device & OS
- not provided
- Scenario
- Opening a Word, Excel, or PowerPoint file through an online viewer link.
- Observed behavior
- The viewer displays an error when the document URL is invalid or the file extension is unsupported.
Locate the original document URL and check the file extension. Make sure the file can be shared publicly before testing it in Office Online Viewer.
Check the document URL and file type
Use this solution when the viewer cannot retrieve the file or reports an unsupported format.
Paste the document's direct URL into a private browser window. Confirm that it opens or downloads the file without requiring a sign-in.
Look at the source file name. Common supported extensions include DOCX and DOTX; XLSX, XLSB, XLS, and XLSM; and PPTX, PPSX, PPT, PPS, POTX, and PPSM.
Open https://view.officeapps.live.com/op/view.aspx?src= followed by the URL-encoded direct file URL. Check that the source URL is complete and points to the document rather than a sign-in or sharing page.
If the extension is unsupported, open the file in its original application and use File > Save As to create a DOCX, XLSX, or PPTX copy, then upload and test that copy.

Troubleshoot the browser and compare results
Use these checks if the URL and file type appear valid but the viewer still fails.
Open Office Documents with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with documents, spreadsheets, and presentations. Open compatible Office files in WPS as an alternative workflow; it does not repair Microsoft Office Online Viewer.

Frequently Asked Questions
Does Office Online Viewer require a public file URL?
The viewer must be able to retrieve the file without your browser session. Test the direct URL in a private window; if it requires a sign-in, the viewer may not be able to access it.
Which file extensions can I check first?
Check for DOCX or DOTX for Word; XLSX, XLSB, XLS, or XLSM for Excel; and PPTX, PPSX, PPT, PPS, POTX, or PPSM for PowerPoint. If a file is unsupported, use the original application’s File > Save As option to create a supported copy.
Why does my sharing link work for me but not in the viewer?
Your browser may be signed in, or the link may lead to a sharing page rather than the file itself. Test the direct file URL in a private window and check its sharing permissions.
Will WPS Office fix an Office Online Viewer error?
No. WPS Office is an alternative for opening and working with compatible Office files; it does not change the Microsoft viewer or fix its service.




