Embed OneDrive Word and Excel Files Without Sign-In
Question details
The user wants website visitors to view embedded OneDrive Word and Excel files without signing in.

- Product
- OneDrive for Business, Word for the web, and Excel for the web
- Device & OS
- not provided
- Scenario
- A Word or Excel file stored in OneDrive for Business needs to be embedded on a public website.
- Observed behavior
- Visitors are prompted to sign in when anonymous sharing is disabled or restricted.
Confirm that the file is suitable for public viewing and that your organization permits Anyone links. You may need a Microsoft 365 administrator to check the tenant and OneDrive sharing settings.
Enable anonymous access and embed the OneDrive file
Use an Anyone link and a supported embed option to make the file viewable without sign-in.
Anyone links may be restricted by your organization's Microsoft 365 or OneDrive settings. Embed options can also vary by file type and account.
Ask your Microsoft 365 administrator to check external sharing in the SharePoint admin center and allow Anyone links for the organization and the relevant OneDrive account, if permitted by policy.
In OneDrive for Business, select the Word or Excel file, choose Share or Copy link, open the link settings, and select Anyone with the link and view-only access. Apply the settings and copy the link.
Open the file in Word or Excel for the web and look for File > Share > Embed. If the option is available, generate and copy the provided iframe code.
In WordPress, add a Custom HTML block, paste the iframe code, and publish or update the page. Your WordPress setup must allow iframe embeds.
Open the published page in a private browser window where you are not signed in to Microsoft 365. If the file still requests sign-in, check the link permissions and embedding restrictions with your administrator.

Prepare Word and Excel Files With WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for editing documents and spreadsheets. Its Microsoft Office format compatibility makes it easy to move existing files into WPS, though it cannot change your organization's OneDrive sharing rules.

Frequently Asked Questions
Why does my embedded OneDrive file ask visitors to sign in?
The file may not have an Anyone link, or anonymous sharing may be restricted for the organization or OneDrive account. Check the file's Share > Link settings and ask your administrator to review the sharing policy.
Can I enable Anyone links if my organization blocks them?
Not on your own if the setting is restricted by policy. Ask a Microsoft 365 administrator to review external sharing in the SharePoint admin center.
What if I cannot find the Embed option?
Check File > Share in Word or Excel for the web. Availability varies by account and file type; if Embed is not offered, ask your administrator about supported publishing options.
How can I check whether visitors can view the file anonymously?
Open the published page in a private or incognito browser window without signing in to Microsoft 365. Confirm that the embedded content loads without a sign-in prompt.




