How to create a direct download link with OneDrive files

/ 3 min read
Max Delaney

Have you ever found yourself wanting to share a file with someone, only to realize that the file is too large to attach to an email or message? If you use OneDrive, Microsoft's cloud storage service, you're in luck.

OneDrive allows you to store and share files with others, but what if you want to provide someone with a direct download link to a file?

In this blog post, we'll show you how to create a direct download link on OneDrive, so you can share files quickly and easily with anyone you choose. Whether you're a business owner, student, or casual user, this guide will help you simplify your file-sharing process and save a bunch of time.


  • To create a OneDrive direct download link manually, you need to generate an embed code by right-clicking the file and clicking Embed. Then, edit the code, removing the iframe and replacing "embed" with "download."
  • For a quick and effortless process, use Paperform's direct link generator for Onedrive. Just paste the file embed URL into the form field below and click "Generate" to get your direct download link.

Smart forms that automate mundane tasks

Start your 14-day free trial now. No credit card needed.

First, sign in to your OneDrive account. If you don't have one it's free to get started. Navigate to the file you want to share, right-click on the file and select Embed from the menu.

screenshot of the share menu in Microsoft OneDrive(Source: OneDrive)

This is where it gets a bit convoluted. When prompted, click Generate to create the embed code. Technically this is to embed the file in a webpage or blog post, but we'll be tweaking this code for our direct download link.

screenshot of the embed code menu from Microsoft OneDriveCopy the embed code from the provided menu (Source: OneDrive)

Copy the code and paste it somewhere that you can edit the text—a note, or a document is fine. For this tutorial, we've used Notion. First, erase the iframe code, which is highlighted below.

That leaves you with pretty much a regular URL. All you need to do now is replace the word "embed" with download, and you've got yourself a Onedrive direct download link! Once you've made that change, click the link, or paste it into a browser, and the file download will start.

screenshot of downloads folder with "getting started with onedrive" pdf downloadedThe file is automatically downloaded to your desktop
Important: If the download doesn't start when you click your flash new Onedrive direct download link, then you've made a mistake along the way. It's okay! It happens to the best of us! Just run back through the steps, and try again.

All that's left to do is share your link. Send the URL directly to friends, embed it in an email, or link it to a button on your landing page or website.

Time matters. Why put yourself through this tedious process if there's an easier, faster, pain-free alternative out there? With our OneDrive direct download link generator, all you need to do is paste the embed link—Paperform looks after the rest. No need to open another app, copy links, or edit the URL manually. Give it a try below.

onedrive direct download link generator

Of course, if you're a Google user, we also have a Google Drive generator too. If you are serious about saving time on manual work, Paperform can help automate way more than direct download links. Sign up for the 14-day free trial and you'll be able to automate all the boring parts of your business.

Related reading

About the author
Max Delaney
Freelance Contributor
Max is a freelance writer and journalist. If he’s not hunched over the computer, you’ll find him falling asleep to sport or pleading with his dog to eat.

Form a better life now.

Get your 14 day unrestricted trial
No credit card needed.
Employee Spotlight: Alex Noles, Video Content Producer

Meet Alex Noles, and learn how his passion for creativity and adventure translates into engaging vid...

The basic principles of design—and how to apply them

Master the principles of design and apply them effectively. Unleash your creativity with these essen...

The 12 best graphic design tools in 2024

We curate a list of the best graphic design software in 2024, from Adobe Creative Cloud to Figma.

Typeform vs. SurveyMonkey: which is better in 2024?

Discover their unique features, ease of use, and analysis capabilities