2,000+
September 30, 2026
November 13, 2019
Office files rendered by Microsoft, not by a converter.
Most embed plugins push your Word and Excel files through a third-party converter, and complex layouts come out broken — tables collapse, fonts change, slide animations disappear. Document Viewer uses Microsoft’s own Office Web Viewer, the same engine behind Office Online, so a .docx looks like a .docx and an .xlsx keeps its columns.
Your visitors read the file on the page. No download, no Office installation, no conversion step for you.
Switch between them with a dropdown. No account and no API key for either.
Word — .doc, .docx
Excel — .xls, .xlsx
PowerPoint — .ppt, .pptx
PDF — .pdf
Files can come from your Media Library or from a direct URL.
Gutenberg block
The block settings are grouped into four panels — Document Source, Viewer Engine, Display Dimensions, and Security Restrictions — so you are not hunting through one long sidebar.
Shortcode
Use [office_doc] anywhere shortcodes run, including Elementor, Divi, Bricks, WPBakery, Beaver Builder and Oxygen. Generate one from the document’s edit screen and paste it in.
[office_doc] shortcode for the Classic Editor and page builders.⭐⭐⭐⭐⭐ Exactly What I Need
“I am a theatre director and I use my website to communicate with my performers and technical crews. I wanted to SHOW them documents in situ as well as enable them to easily download them and, after looking at other solutions, this plugin is PERFECT for this. I am delighted with it and cannot recommend it highly enough.” — jfortune
⭐⭐⭐⭐⭐ Impressively Stable
“Nice wp plugin ever. I’ve use it for 4 years.” — aircess
⭐⭐⭐⭐⭐ Does the job well.
“This plugin works fine” — muhammadarooj
Liked it? Disliked it? Want a feature? Send us your feedback
Document Viewer runs on sites around the world. If you speak another language, you can help — no coding needed:
https://translate.wordpress.org/projects/wp-plugins/embed-office-viewer/
New to translating? Start here: https://make.wordpress.org/polyglots/handbook/translating/first-steps/
This plugin relies on external services to render your documents. Please read this section before embedding anything confidential.
https://view.officeapps.live.comhttps://docs.google.com/viewerhttps://api.bplugins.comhttps://api.wordpress.orgFrom your dashboard
By upload
Adding your first document
[office_doc] shortcode and paste it into any post or page — or add the Document Viewer block in the Block Editor instead.[office_doc]. Generate the exact shortcode for a document from its edit screen, then paste it into any post, page, widget or page builder that supports shortcodes.
Word (.doc, .docx), Excel (.xls, .xlsx), PowerPoint (.ppt, .pptx) and PDF. If you need images, code files, archives, 3D formats or a document library, use Document Embedder instead.
No. Upload the .docx, .xlsx or .pptx you already have. There is no conversion to PDF or HTML.
No. The file is rendered in the browser. Visitors need nothing installed, on desktop or mobile.
For Word, Excel and PowerPoint, use the Microsoft Office Web Viewer — it keeps the original formatting because it is Microsoft’s own renderer. For PDF, the Google Docs Viewer is usually the better choice.
Yes, and you should know exactly how. Both viewers work by passing your document’s public URL to an external service — Microsoft’s Office Web Viewer or Google Docs Viewer — which renders it in an iframe. See the External Services section below for the full detail. If your documents are confidential, this plugin is not the right choice; use a plugin that renders locally instead.
Yes. Microsoft and Google fetch the file over the internet, so a file behind a login or on a local development site will not render.
Yes. Use the [office_doc] shortcode in any builder with a shortcode widget — Elementor, Divi, Bricks, WPBakery, Beaver Builder, Oxygen and others.
The download button, along with filename display, pop-out control and content protection, is part of the Pro version.
Pro includes content protection — it disables right-click, text selection and the Ctrl/Cmd + C, A, S and P shortcuts. Treat it as a deterrent rather than real security: anything a browser can display can ultimately be copied.
There is no limit in the plugin itself, but very large files take longer for the external viewer to fetch and render. Files under about 20 MB are the most reliable.
Please report security bugs found in the source code of the Document Viewer plugin through the Patchstack Vulnerability Disclosure Program. The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.
includes/core/ and helper files under includes/helper/ for namespace consistency.render_block() API.plugins_loaded hook by replacing query loops with get_posts() in the ImportMeta class.| Version | Download | Type |
|---|---|---|
| 2.4.2 | Download | Stable |
| 2.4.1 | Download | Stable |
| 2.4.0 | Download | Stable |
| 2.3.3 | Download | Stable |
| 2.3.2 | Download | Stable |
| 2.3.1 | Download | Stable |
| 2.3.0 | Download | Stable |
| 2.2.10 | Download | Stable |
| 2.2.9 | Download | Stable |
| 2.2.8 | Download | Stable |
| 2.2.6 | Download | Stable |
| 2.2.4 | Download | Stable |
| 2.0.1 | Download | Stable |
| 1.1 | Download | Stable |
| 1.0.1 | Download | Stable |
| 1.0 | Download | Stable |
| Development | Download | Trunk |