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?

Contact support icon

Contact Support
For help with your Microsoft account and subscriptions, visit Account & Billing Help.

For technical support, go to Contact Microsoft Support, enter your problem and select Get Help. If you still need help, select Contact Support to be routed to the best support option.

Work or school badge

Admins
Admins should view Help for OneDrive Admins, the OneDrive Tech Community or contact Microsoft 365 for business support.

Need more help?

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

Was this information helpful?

What affected your experience?

Thank you for your feedback!

×