Monday, May 5, 2014

How to Get Direct Download Link From OneDrive - WORKING - Power IT Pro Tip

Update 2017 Note Onedrive API changed in 2017 see new instructions at my updated post

  • Need a direct download link for single file on ? 
  • Do you find the normal OneDrive "Get a link" which bring  you to one drive site an show multiple files a little confusing? (especially for novices)

Microsoft OneDrive Direct File Download URL Maker

<iframe src="" width="98" height="120" frameborder="0" scrolling="no"></iframe>  see instructions below, if you don't know how. NOTE : For images there an extra step below. and populate the textbox below, click "Get Download Link" button.

2. Click on Get Download Link button.
Textbox will be highlighted so you can copy the full link. To copy, right-click and choose  "Copy" or simply (ctrl-c) to copy link. Note: Entire URL is automatic selected for your convenience.


How to get a Microsoft OneDrive Embed Code (see instructions and images below)

  1. Goto OneDrive (
  2. Upload you file

  3. Right-click to "Embed" your uploaded file 

  4. Click Generate HTML Button.

  5. Copy and Paste HTML Code to Notepad

  6. Copy the all the embed code ie. <iframe src="embed link"... >...</iframe> and paste into textbox here

    Click Get embed link button to get the embed link and copy (ctrl-c).
  7. Paste (crtl-v) the file link into OneDrive Embed Link textbox above and click "Get Download Url" button. Proceed as usual.
  8. Right-click and "Copy" or simply press ctrl-c keys to copy the link to your clipboard.
  9. Now Paste (ctrl-v) the OneDrive Share Direct Download Link in emails to share!
  10. Done!

API Change for Images 

  1. Right-click to "Share" your uploaded file

  2. Pop-up will appear and choose "Get a link", click "Create link" dark blue button.
  3. Right-click and "Copy" the highlighted link.  Updated June 07, 2016 API change.
  4. You should get a similar "shortened" url as this!AvOyviiXZJmPlSc1CjtKuwc_gqVu

    Paste into and copy that URL.

  5. Resulting url looks like this!2727&authkey=!ADUKO0q7Bz-CpW4&ithint=photo%2cjpg
  6. Paste link into OneDrive Share Link textbox and click "Get Download Url" button.
  7. Right-click and choose "Select all" and "Copy".
  8. Paste the OneDrive Share Direct Download Link in emails instead.
  9. "Shorten link" was a feature in the old API windows now gone, June 07, 2016.  This is done by default now.

  10. OR for image only 
  1. Updated June 07, 2016 API change! Right-click Embed now gives you direct download URL! So you do not need to do the above! 
Google Chrome Warning: Very large PDF files do not preview in Chrome

PDF files approx. over 100Mb in size, do not preview in Chrome, and you get a splash page to "For the best experience, open this PDF portfolio in Adobe Acrobat or Adobe Reader"

You have to save the file first then open in Adobe Acrobat/Reader.

It should look something like URL above and must contain the required file id (resid), authentication key (authkey) and file type (ithint). We'll use this link to get a direct file download.

OneDrive for Business File Share Link is the download link by default;)

Bonus : For images, read Using OneDrive as a Content Delivery Network (CDN)


  1. The second method, using 'Get a Link' worked for me today, 28 August 2014.

  2. Wow.. that's... not a very good user experience.

  3. The second method, using 'Get a Link' worked for me today, 30. October 2014.

  4. Thx, last method worked for me. Hope it lasts!!!

  5. Bump for love. Download worked with the Get Link edited.

  6. Thanks. The second method still works

  7. Thank you very much , your share post very useful,
    I have problem on my blogspot, then i upload video to Onedrive( skydrive) , i emble code to insert my blogspot , but then i click video file on my blog, inmediate video next page to Onedirve page , that please you tell me should be how hadling?
    Thanks you, my email:


      You have to embed a video player (such as and choose the source of the file from OneDrive using above trick, such as this link

  8. Neither one is working for me any longer.

      Try this link as a test, works for me.

  9. OMG. This work great with onedrive webdav hack

    Now i can sync outlook calendar with live calendar

    Thank you

  10. Thanks a lot !!! Both methods are working good just now.

  11. First one worked for me well, saved me a bunch of time, THANKS A LOT!!!

  12. OneDrive do not agree direct download if the file is big. I have video of 1 at 4GB and whoever receives the link will have to register in microsoft. No good!. The little files, no problem. If anybody know a way, tell me

  13. I have a lot of files over 4GB and work to me but not for my friends. The little files, no problem...

    1. As of Sept 2014, Onedrive allows files up to 10G to be uploaded.

  14. Worked for me, good since the download link is removed from the OneDrive Web application in Safari on an iPad. Used the embed method, edited it to download? , removed HTML tags, and emailed to myself on the tablet. PDF file opened using "Open in". What a pain in the rear, download function worked directly in Safari last week, no longer.

  15. You are the man!!! Revised version worked for me and first time download from onedrive with full download speed. BIG THX

  16. I just check the box of the file then middle click the Download button at the top so that it creates a new tab and copy that link. Always worked for me

  17. Probably not the best method to create direct links, if you don't want to share your name. Just replace 'download' with 'redir' and you can view the uploader details.

    Unfortunately are real direct links (e.g. temporarily limited. Except for pictures where no such limitation exists.

    1. That is correct, thanks for the security reminder!

      Under the Information twisty folks on the OneDrive preview page for the download, the Added field will pull your full name from the Microsoft Account of the uploaded and then shared file.

      Note: This has always been the case with OneDrive, you can check that Information tab with any share.

      If you use the default share link with the default redir verb ( you get this information too. Click on the circle-i icon will pull up the same information panel and expose user name and additional file info.

      Onedrive is not a place for anonymous shares.

  18. Perfect advice, works like a charm.

  19. The first method presented (extract the address from the html embedding code) worked for me at the time of this writing.

  20. Veryyyyyyyyyyyyyyyy Nice the above 1st trick is 100% working... thanks a lot, carryon bro

  21. But wget of files and folders zipped by OneDrive for downloading is not possible
    Error 405: Method not allowed

  22. it works very good, but I had problems with the direct processing of a textfile. Very Strange, the ftell php command runs out of control, I guess the line end isn´t accepted well. Now, I first copy the file from onedrive to my Webspace Folder and then process with php, this works absolutely fine

  23. You have to delete this shit too: &authkey=AHGTayWelaWRDMA

  24. Swapping redir? for download? works perfectly, thanks!

  25. Thanks!! This is a fix for a seeming simple and obvious use case to get a link for let people download any file.
    I can't believe OneDrive interface does not make it easy for people to do this.

  26. Saved my day bro, my onedrive has a lot of data i want to share publicly. :)

  27. Is there a way to get a link for direct download without giving the user access to all your other files in your onedrive account..?

    Thanks a lot...