Get direct download link of a file in OneDrive for Business

Brass Contributor

I use "Get Link" button and it gives me a link (like below) which will open the file online.  How can I get a link for direct file download?  Thanks.



29 Replies

Was expecting to see some controls, but I don't see them either when using Azure B2B guest access. The new secure sharing feature for OD/SPO does give me the control on top. Workaround for me is to remove the last part of the URL, which gives me the library/folder view and there I have the option to select the file and click on the download button. 

AFAIK, there is not a way to get a download link for a file stored in SPO / ODFB
best response confirmed by Chris Lo (Brass Contributor)
Well I just took a logical guess and it totally worked lol.... so do this.

Use "Get link", then use "People with existing access" to get the direct link to the file.

Then, the url will be direct path to

Now, just remove everything after the ? and put in download=1 and magic happens.

Christopher's method works like a magic.  It also works with "Anyone with the link" and "People in my org" mode.  Simply add "&download=1" to the end of link.


Thanks Christopher and other people here for your replies.

It does not seam to work for me. I always end up on the download page.

Depending on your Url you might have to use ?download=1 but this won’t work for every single file type either think only office files.

I am in the same. Can't seem to get it to work on PDFs which is the main file type I need.

That's because PDF's are opening directly in your browser from the location via a plugin. If using chrome you can use this method to cause them to download, but it's a browser thing, not a download / server thing, you're actually downloading it, it's just your browser picking it up, so you can either click the download link they provide in the plugin but that's the only way to get pdf's to download outside of zipping them etc.



@Chris LoI wanted to get a GIF file stored on OneDrive to be shown on another site. I right clicked the file and chose "view online", then right clicked the GIF in the browser and chose "copy image location" which gave me a long URL ending with... CWDi2g/lockar.gif?download&psid=1 where I then removed everything after "lockar.gif".


That worked for me.

which will work assuming you or the users accessing where that image is, are authenticated to your tenant SharePoint :).

Thank you so much, it worked for me. In the past 1 year, my users have trouble downloading compressed folders stored on Onedrive. You can read this problem here:

The problem that people encounter is trying to download a file in the compressed folder and that's when an error occurs. I tried many ways to create direct links from Onedrive like using the embed code but it doesn't work.

Cool to see after all this time. You Probabaly can just do &download=1 without removing the unique tail end of the document url.

Hi @Chris Webb , @matesfx and Everyone,


It seems to be not working for me,


I've shared links from my personal as well as business account and adding &download=1 or ?download=1 is not downloading the file directly.


Publicly shared file from my personal account!Ark-bya05CiQhJo-d1hv3O3UpJEoQQ?e=M9N6Pg


Publicly shared file from my business account


any help will be appreciated.

@Ben Geerdes 

For me I had to go through a few steps to get it to work - as a side note I did it with audio mp3 files not pdf or anything.


1.  Right click the file and copy link

2. It should come up with a dialogue box that says "People in *domain* with the link can edit".  Click on that.

3. Uncheck the "Allow Editing"

4.  Click apply then copy the link it gives you

5.  Add "&download=1" to the end of it and then put that in a browser url address bar and hit enter.

6.  It will then produce an expanded url and when I copied the expanded url it produced it was basically a direct download file for the audio. That worked fine for me. 


Best of luck.

Here's a simple download link generator for this
OneDrive 2019 Direct File Download URL Maker

OneDrive Direct Download Link Generator is a tool that will convert the Microsoft OneDrive embedded code into a direct downloadable link so one can download the shared file without LogIn to their Microsoft account.

How this Tool works:-

  1. Just Copy the Embedded code  from your OneDrive
  2. Paste the copied link into ✸OneDrive Direct Download Link Generator✸ 
  3. Click on Generate Direct Download Link
  4. Then the Direct Download link will appear in the box bellow, so click on the copy button.


@Chris Lo 


It doesn't work for me.  Is the generator for OneDrive Personal only?