How to Embed an Excel Workbook Without an iframe (Using xlembed)
Question details
The user needs to generate an Excel for the web embed link that utilizes the Office Online xlembed URL path rather than relying on standard iframe HTML tags.

- Product
- Microsoft Excel for the web
- Device & OS
- not provided
- Scenario
- Embedding a hosted Excel workbook into a webpage or application using a direct Office embed URL.
- Observed behavior
- The user requires the proper method to extract a fully functional xlembed URL, complete with all necessary security and configuration query parameters.
Ensure that your workbook is saved to a supported Microsoft 365 cloud location, such as OneDrive or SharePoint, and that external file sharing permissions are enabled.
Generate the xlembed URL via Excel for the Web
Use the built-in Share and Embed feature in Excel for the web to safely extract the official xlembed URL.
It is highly recommended not to manually construct or modify the xlembed URL. The system automatically generates unique, workbook-specific security tokens and configuration values that must be present in the URL for the embedded file to render correctly.
Navigate to your OneDrive or SharePoint account and open the target workbook in Excel for the web.
Click on the 'File' tab in the top ribbon menu, select 'Share' from the left sidebar, and then click on 'Embed'.
In the Embed dialog box, customize your display options (such as showing gridlines or a specific range) if necessary. The system will generate a block of HTML code.
Look inside the generated iframe code for the 'src=' attribute. Copy only the URL enclosed in the quotes, which begins with the xlembed path. Ensure you include all trailing query parameters.

Share and Embed Spreadsheets Effortlessly with WPS Office
If managing Microsoft Office embedding permissions and extracting complex xlembed URLs is too time-consuming, WPS Office offers a highly compatible and lightweight alternative. Enjoy seamless Excel format support and straightforward cloud sharing without the technical hassle.
- 1. Open WPS Spreadsheet: Launch WPS Office and open your spreadsheet file.
- 2. Click Share: Click the 'Share' button located in the top right corner of the application interface.
- 3. Create a Link: Select your desired access permissions (e.g., Anyone with the link can view) and click 'Create Link' to share your file effortlessly.

Frequently Asked Questions
Why is the Embed option missing in Excel for the web?
The Embed option is typically missing if it has been disabled by your organization's Microsoft 365 administrator for security reasons, or if the file is saved locally rather than in a supported cloud location like OneDrive or SharePoint.
Can I manually create an xlembed URL for my Excel file?
No, manually constructing the URL is strongly discouraged. The generated xlembed URL contains dynamic security tokens and specific query parameters required to authorize and correctly display the workbook online.
Will users need to log in to view the embedded Excel workbook?
This depends on the sharing settings applied to the workbook when generating the embed link. If external anonymous sharing is disabled by your administrator, viewers may be prompted to sign in with an authorized Microsoft account.




