Embed files directly into your website or blog

If you have a website or blog, it’s quick and easy to embed photos, Office documents, and other files from OneDrive. You can even customize how embedded Excel workbooks appear to other people.

  1. Go to the OneDrive website. You might need to sign in with your Microsoft account.

  2. Pick the file you want to embed by selecting the check box in the upper-right corner of the file.

  3. Select Embed at the top of the page, and then choose Generate.

  4. Copy and paste the code into the code of your website or blog.

Need more help?

Online

Get online help
See more support pages for OneDrive and OneDrive for work or school.
For the OneDrive mobile app, see Troubleshoot OneDrive mobile app problems.

OneDrive Admins can also view the OneDrive Tech Community, Help for OneDrive for Admins.

Microsoft virtual support agent icon

Contact Support
If you still need help, contact support through your browser or shake your mobile device while you're in the OneDrive app.

OneDrive Admins can contact Microsoft 365 for business support.

Office 365 community forums

Got feedback?
You can suggest features you’d like to see us add to OneDrive. Go to How do I give feedback on Microsoft Office? for more information.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Thank you for your feedback!

×