SharePoint Online: Link to Force Download a Document Instead of Open

Requirement: Force download a file instead of opening in SharePoint Online.

SharePoint Online: URL to Document Download Instead of Open

Documents linked in SharePoint Online pages, navigation menu, lists, etc. opens in the browser (or in client application!) directly either in Read-only mode or in Edit mode, based on user permissions. What if you want to force downloading a file, instead of opening it in the browser? Well, here are some ways to generate a link that downloads the document directly.

Option 1:

Use the format: https://<yourdomain>.sharepoint.com/sites/<yoursite>/_layouts/download.aspx?SourceUrl=<document-URL>

E.g. https://crescent.sharepoint.com/sites/legal/_layouts/download.aspx?SourceUrl=https://crescent.sharepoint.com/sites/Legal/Documents/Compliance-Manual.pdf

When a user clicks on the link, It downloads the file instead of open!

Option 2:

Use to “Copy link” Option to get the link to document and append “&download=1”
Just navigate to the document library where your documents are located, select the file and click on the “Copy link” button in the ribbon >> Copy the URL and append “&download=1” to it.

E.g. https://crescent.sharepoint.com/:w:/s/legal/ECm5WU0-3ohOo2n8-q5GQG4Bar33Prunsg4g9QvAPu3cRQ?e=UPMiz5&download=1

sharepoint online document download instead of open

This URL directly links to document the download in SharePoint Online.

Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

5 thoughts on “SharePoint Online: Link to Force Download a Document Instead of Open

  • July 29, 2021 at 10:52 AM

    Try the following o SharePoint Online modern site:
    https://.sharepoint.com/sites//_layouts/download.aspx?SourceUrl=

    Reply
  • June 10, 2021 at 9:12 PM

    Copy the URL and append “?&download=1” to copied URL then it going to work.

    Reply
  • June 4, 2021 at 4:13 PM

    I can’t get it to work either, maybe they updated something and this method no longer works. Article is a year old as of this comment.

    Reply
  • June 2, 2021 at 3:00 PM

    Hi, i can’t get this to work every time, only occasionally, any suggestions as to what i might be doing wrong?

    Reply
    • July 29, 2021 at 10:52 AM

      Try this
      https://.sharepoint.com/sites//_layouts/download.aspx?SourceUrl=

      Reply

Leave a Reply