logo
search
SharePoint Document Issues

How to Open SharePoint Files in Browser or Force Download

Maira MehtabMaira Mehtab Sep 22, 2026 869 views

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.
Before you start

Ensure you have the appropriate SharePoint file sharing permissions and that your organization's tenant settings allow link modification and external sharing if necessary.

Solution 1Recommended

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.

1
Copy the file link

Navigate to your SharePoint document library, select the file, and copy its direct link.

2
Force browser viewing

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).

3
Force file download

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).

4
Test the links

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.

Download Restrictions: Users who have view-only access may still be able to download the file using the download parameter unless explicit download restrictions are configured in your SharePoint admin center.
Free Microsoft Office alternative

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. 1. Download your file: Use the SharePoint forced download link to save the document to your local device.
  2. 2. Open with WPS Office: Right-click the downloaded file, select 'Open with', and choose WPS Office from the application list.
  3. 3. Edit and save: Make your changes locally and easily re-upload the finished document back to your SharePoint library if needed.
Fully compatible with Microsoft Office formats (.docx, .xlsx, .pptx)Lightweight software that loads large downloaded SharePoint files quicklyFamiliar user interface with zero learning curveFree to use for everyday document viewing and editing tasks
microsoft office alternative - wps office

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.