Opening a OneDrive file from your browser usually launches the web version of the app. You want the file to open directly in the installed desktop application like Word, Excel, or PowerPoint. This behavior is controlled by a browser setting and a OneDrive file handler. This article explains how to force desktop apps to open when you click a file link in the browser.
The browser often opens Office files in the web app by default because the web app loads faster. However, you can change this default to always open files in the desktop application. The change is made in the browser settings and applies to all files in OneDrive, SharePoint, and Teams.
This guide covers the steps for Chrome, Edge, and Firefox. It also explains what to do if the setting does not stick or if the desktop app still does not open.
Key Takeaways: Open OneDrive Files in Desktop Apps from Browser
- Browser setting: Office files open in web apps by default: You must change the default to “Open in desktop app” in your browser settings.
- Chrome and Edge: chrome://settings/content/pdfDocuments: Disable the option to open PDFs in the browser to force desktop apps for Office files.
- Firefox: Options > Applications: Change the action for each Office file type from “Preview in Firefox” to “Use other app” and select the desktop app.
Why Files Open in the Browser Instead of the Desktop App
When you click a link to a Word document on OneDrive, your browser checks the file type. If the browser has a built-in viewer or a web app handler for that file type, it opens the file in the browser. Office Online is the default web handler for .docx, .xlsx, .pptx, and .pdf files. The browser prefers the web app because it starts faster and does not require a local installation.
The desktop app does not open unless you manually change the browser’s file handling behavior. Each browser stores this setting in a different location. Once changed, the browser passes the file URL to the installed Office application, which launches and downloads the file from OneDrive.
Steps to Change Browser Settings for Desktop App Launch
The steps differ for each browser. Use the section that matches your default browser.
Google Chrome
- Open Chrome Settings
In the address bar, typechrome://settings/content/pdfDocumentsand press Enter. This opens the PDF document settings. - Turn off PDF viewer
Toggle the switch next to “Download PDF files instead of automatically opening them in Chrome” to the ON position. This forces Chrome to download the file instead of previewing it. The desktop app will then open the downloaded file. - Change Office file handling
Typechrome://settings/handlersin the address bar. Under “Protocol handlers,” look for “mailto” or other handlers. Chrome does not allow you to set a default handler for Office file types directly. Instead, when you click a file link, right-click the link and select “Save link as” or use the download option. Then open the file from the download bar. For a direct open experience, use Edge or Firefox.
Microsoft Edge
- Open Edge Settings
Click the three-dot menu in the top-right corner and select “Settings.” In the left sidebar, click “Cookies and site permissions.” - Find PDF documents
Scroll down and click “PDF documents.” Toggle the switch for “Always download PDF files” to ON. This prevents Edge from opening PDFs in its built-in viewer. - Set Office file protocol
Edge uses the Microsoft 365 protocol handler. In the address bar, typeedge://settings/defaultBrowser. Under “Protocol handlers,” click “Manage protocol handlers.” Ensure that “Microsoft Office” is listed and set as the default handler for thems-word:,ms-powerpoint:, andms-excel:protocols. If not, click the three-dot menu next to each and select “Set as default.” - Test the change
Go to your OneDrive in Edge and click a Word file. It should now open in the desktop Word app.
Mozilla Firefox
- Open Firefox Options
Click the hamburger menu in the top-right corner and select “Settings.” In the left sidebar, click “General.” - Scroll to Applications
Scroll down to the “Applications” section. This lists all file types and their current handling actions. - Change Office file types
In the search box, typedocx. Find the entry for “Microsoft Word Document” or “Office Open XML Document.” Click the action dropdown next to it. Select “Use other app” and browse to the location of your Office application. Repeat forxlsxandpptx. - Set PDF handling
Search forpdf. Change the action from “Preview in Firefox” to “Use other app” and select your PDF reader or Office app if you want it to open in Word.
If the Desktop App Still Does Not Open
Sometimes the browser setting alone is not enough. The following issues can prevent the desktop app from launching.
OneDrive File Link Opens the Web App Instead of the Desktop App
This happens when the browser does not recognize the file protocol handler. In Edge, go to edge://settings/defaultBrowser and click “Manage protocol handlers.” Verify that the ms-word: protocol is set to open in Microsoft Word. If it is missing, install or repair Microsoft 365 apps from the Microsoft 365 admin center or run the Office repair tool from Control Panel > Programs > Microsoft 365 > Change > Quick Repair.
Desktop App Asks to Sign In Every Time
The desktop app must be signed in with the same account used in the browser. Open Word, go to File > Account, and check the user name. If it is different, sign out and sign in with the correct work or school account. If the account is correct, clear the browser cache and cookies for the OneDrive domain and try again.
Browser Resets the File Handling Setting After Update
Browser updates sometimes reset file handling preferences. After a major update, check the settings again. In Firefox, the Applications list is preserved across updates. In Chrome and Edge, the PDF download toggle may reset. Reapply the setting after each browser update.
Browser Settings for Desktop vs Web App: Comparison
| Item | Open in Web App | Open in Desktop App |
|---|---|---|
| Default behavior | File opens in Office Online in the browser tab | File opens in installed Word, Excel, or PowerPoint |
| Browser setting required | None (default) | Change PDF handling and protocol handlers |
| File location after open | File stays on OneDrive server | File is downloaded to a temp folder and saved back to OneDrive |
| Offline access | Requires internet connection | Works offline if file is synced locally |
| Collaboration features | Real-time co-authoring in browser | Co-authoring available if file is synced via OneDrive |
You can now open OneDrive files directly in desktop applications from your browser by adjusting the file handling settings in Chrome, Edge, or Firefox. Test the change by clicking a Word or Excel file in your OneDrive library. If the desktop app does not launch, verify that the protocol handlers are set correctly and that your Office apps are signed in with the same account. For the most reliable experience, use Microsoft Edge with the protocol handlers set to Microsoft Office.