Embed a Word Document in a Web Page and Let Users Edit It
Question details
The user wants to display a Word document on a web page and allow visitors to edit it.

- Product
- Microsoft Word for the web, OneDrive, and SharePoint Online
- Device & OS
- not provided
- Scenario
- An intranet page needs to show an online Word document while giving authorized users a way to make changes.
- Observed behavior
- The embedded document can be viewed in an HTML iframe, but users cannot edit it directly inside that embedded view.
Store the Word document in OneDrive or SharePoint Online and confirm that intended viewers and editors have the appropriate permissions. Check whether your storage account offers an Embed option or whether you need to use a SharePoint page web part.
Embed the Word Document and Link to Word for the Web for Editing
Use an embedded view for reading and a separate edit link for users who need to change the original file.
The embedded Word view is not a direct editing surface. Users must open the online document in Word for the web to make changes.
Upload the Word file to OneDrive or a SharePoint Online document library, then use the file's Share or Manage access options to grant viewers and editors the appropriate access.
In OneDrive, select the file and choose Embed if that option is available, then copy the generated code into your page's HTML. On a SharePoint page, you can instead edit the page and add a File and Media web part that points to the document.
Use Share or Copy link on the original file to create a link with editing permission for the intended users. Add that link to the page with a label such as Edit document.
Open the edit link in Word for the web, make a change, and allow it to save. Refresh the page containing the embedded view to see the updated document.

Edit Word Documents with WPS Writer
WPS Office is a free, lightweight Office alternative with a familiar interface for opening and editing Word documents. Its format compatibility makes it easy to move existing files into WPS; it does not add editing to a Microsoft Word embedded iframe.

Frequently Asked Questions
Can visitors edit a Word document directly inside its embedded iframe?
The embedded Word view is for viewing rather than direct editing. Add a separate link that opens the original file in Word for the web with editing permission.
How do I give someone permission to edit the document?
In OneDrive or SharePoint, select the file and use Share or Manage access to grant the person editing permission. Share the resulting link with the intended editor.
Will changes appear in the embedded document?
Changes saved to the original online document can appear in the embedded view after the page is refreshed. Make sure the edit link and embedded view point to the same file.
What if I cannot find the Embed option?
The option may vary by account or file. If you are building a SharePoint page, edit the page and use the File and Media web part to display the document, or provide a link to the file instead.




