How to Open SharePoint Files in Browser or Force Download
Question details
The user wants to know how to configure SharePoint links to dictate whether a document opens directly in the web browser or immediately downloads to the user's device.
- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Sharing or embedding SharePoint document links for users and controlling the access behavior.
- Observed behavior
- Users need specific link formats to ensure files either open in the browser or trigger an automatic download upon clicking.
Ensure you have the appropriate SharePoint file sharing permissions and that your organization's tenant settings allow link modification and external sharing if necessary.
Modify the URL to Force Download or Browser View
Use specific URL parameters added to the end of your SharePoint file link to dictate the opening behavior.
SharePoint allows you to append specific parameters to a document's URL. This method overrides the default browser behavior, ensuring the file opens exactly how you intend, depending on tenant settings and file types.
Navigate to your SharePoint document library, select the file, and copy its direct link.
To ensure the document opens in the web browser, append '?web=1' to the end of the URL (e.g., https://domain.sharepoint.com/.../file.docx?web=1).
To make the file download automatically when clicked, append '?download=1' to the end of the URL instead (e.g., https://domain.sharepoint.com/.../file.docx?download=1).
Open an incognito or private browsing window to test the modified links and verify they behave as expected with the intended file types and permissions.
Edit Downloaded SharePoint Documents with WPS Office
While SharePoint manages your document storage and sharing, you can seamlessly open and edit your downloaded Word, Excel, and PowerPoint files using WPS Office—a lightweight, free, and highly compatible alternative to Microsoft Office.
- 1. Download your file: Use the SharePoint forced download link to save the document to your local device.
- 2. Open with WPS Office: Right-click the downloaded file, select 'Open with', and choose WPS Office from the application list.
- 3. Edit and save: Make your changes locally and easily re-upload the finished document back to your SharePoint library if needed.

Frequently Asked Questions
Why does my SharePoint link download the file instead of opening it in the browser?
This can happen due to the file type, your specific browser settings, or SharePoint tenant configurations. Certain files that lack native web viewers (like zip archives or specific design formats) will default to downloading.
Can I prevent users from downloading a file while letting them view it in the browser?
Yes, you can configure SharePoint sharing permissions to block downloads. When generating a sharing link, select the 'Block download' toggle to restrict the user to browser-viewing only.
Will the '?download=1' parameter work on all SharePoint files?
It generally works for most standard document types (like Word, Excel, and PDF), provided your SharePoint tenant settings allow direct downloading and the user has the required permissions to access the file.
Do these URL parameters work for external guest links?
Yes, appending '?web=1' or '?download=1' typically works on external sharing links as well, as long as the link itself is valid and the guest has been granted the appropriate access rights to the tenant.




