Embed Word, Excel and PowerPoint files that look exactly like the original. Document Viewer lets you embed a Word document, Excel spreadsheet, PowerPoint presentation or PDF file on any WordPress page or post. Your visitors read it right in the browser. They do not download anything, they do not nee
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 6.5 and PHP 7.4.
SourceWordPress plugins · Nov 6, 2026
01 / Source details
Aboutthistool.
Embed Word, Excel and PowerPoint files that look exactly like the original.
Document Viewer lets you embed a Word document, Excel spreadsheet, PowerPoint presentation or PDF file on any WordPress page or post. Your visitors read it right in the browser. They do not download anything, they do not need Microsoft Office, and you do not convert anything.
The difference is who renders the file. Many embed plugins push your .docx or .xlsx through a third-party converter, and complex layouts come out broken: tables collapse, fonts change, slides lose their layout. Document Viewer uses Microsoft’s own Office Web Viewer , the same engine behind Office Online. A .docx looks like a .docx. An .xlsx keeps its columns. A .pptx keeps its slides.
Live Demo | Pricing | Support
Two viewer engines, both free
Microsoft Office Web Viewer: the best choice for Word, Excel and PowerPoint. Formatting, tables, charts and slide layouts stay intact because Microsoft renders them.
Google Docs Viewer: a good fallback, and it handles PDF well.
Switch between them with a dropdown. No account and no API key needed for either.
Supported file types
Word: .doc, .docx
Excel: .xls, .xlsx
PowerPoint: .ppt, .pptx
PDF: .pdf
Add files from your Media Library or paste a direct URL.
Why people choose Document Viewer
A spreadsheet that still looks like a spreadsheet. Google’s viewer often flattens Excel formatting. Microsoft’s does not.
No conversion step. You do not turn a .docx into a PDF or an HTML table first. Upload the file you already have.
Nothing for visitors to install. The document opens in the browser, on a phone as easily as on a desktop.
Works with any builder. The Gutenberg block for the Block Editor, the [office_doc] shortcode for everything else.
Small and focused. One shortcode, one block, a handful of settings. If you need a document library, a flipbook and sixteen file formats, see Document Embedder below.
Schools, teachers and training sites: handouts, worksheets and slide decks students read in the browser.
Theatre, events and clubs: schedules, scripts and rotas shared with cast, crew and members.
Accountants and consultants: rate cards and spreadsheets a client can read without downloading.
Councils, churches and associations: minutes, forms and policies published as the Word files they already keep.
Businesses and internal pages: a price list, menu or process document on a public or members-only page.
Add a document in under a minute
With the Gutenberg block
01Open any post or page in the Block Editor.
02Add the Document Viewer block.
03Upload a file or paste a URL, choose the viewer, set the size.
Block settings are grouped into four clear panels: Document Source, Viewer Engine, Display Dimensions and Security Restrictions. No hunting through one long sidebar.
With the shortcode
Use [office_doc] anywhere shortcodes run, including the Classic Editor, widgets, Elementor, Divi, Bricks, WPBakery, Beaver Builder and Oxygen. Generate the shortcode from the document’s edit screen and paste it in.
Free features
Two viewer engines: Microsoft Office Web Viewer and Google Docs Viewer.
Gutenberg block with grouped settings panels.
[office_doc] shortcode for the Classic Editor and page builders.
Custom width and height so the viewer fits your layout.
Dedicated document screen for managing the files you embed.
Document Viewer Pro
Need more control over how your files are shared? Pro adds:
Cloud sources: pick documents straight from Google Drive , OneDrive or Dropbox .
Download button: show a download button on the toolbar, or leave it off.
Filename display: show or hide the document title above the viewer.
Pop-out control: stop visitors opening the document in a separate window.
Content protection: disable right-click, text selection and the Ctrl/Cmd + C, A, S, P shortcuts.
Full-screen control: allow or block full-screen viewing.
See the Pro features
What users say
⭐⭐⭐⭐⭐ 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
Using Document Viewer on your site? A short review on WordPress.org helps other people find it. Want a feature or found a problem? Tell us here .
Privacy in plain words
Your document’s public URL is sent to Microsoft or Google so they can render it. Files must be publicly reachable, and confidential files should not be embedded this way. The External Services section below has the full detail.
Help translate this plugin
Document Viewer runs on sites around the world. If you speak another language, you can help. No coding needed:
New to translating? Start here: https://make.wordpress.org/polyglots/handbook/translating/first-steps/
Other plugins by bPlugins
Document Embedder : 16+ file types, four viewers, 3D FlipBook and a searchable document library.
PDF Poster : display and embed PDF files in different styles.
HTML5 Video Player : single videos and playlists in multiple skins.
HTML5 Audio Player : audio with visualisations.
3D Viewer : embed interactive 3D models and products.
External Services
This plugin relies on external services to render your documents. Please read this section before embedding anything confidential.
Microsoft Office Web Viewer
Service: Microsoft Office Web Viewer – https://view.officeapps.live.com
What it does: Renders Word, Excel and PowerPoint files in an iframe on your page.
What data is sent: The public URL of the document you embed is passed to Microsoft, which then fetches and renders that file. Your visitor’s browser connects directly to Microsoft’s servers, so their IP address and browser details are visible to Microsoft. No WordPress user data is sent by the plugin.
When: Every time a page containing an embedded document is viewed, if the Microsoft viewer is selected.
Terms of Service: https://go.microsoft.com/fwlink/?LinkID=206977
Service: Google Docs Viewer – https://docs.google.com/viewer
What it does: Renders documents, including PDFs, in an iframe on your page.
What data is sent: The public URL of the document you embed is passed to Google, which then fetches and renders that file. Your visitor’s browser connects directly to Google’s servers, so their IP address and browser details are visible to Google. No WordPress user data is sent by the plugin.
When: Every time a page containing an embedded document is viewed, if the Google viewer is selected.
Terms of Service: https://policies.google.com/terms
Service: bPlugins product API – https://api.bplugins.com
What it does: When you open the plugin’s admin dashboard, the plugin requests product information so it can display product cards, version information and upgrade options.
What data is sent: A request containing the product identifier. No personal data or site content is sent.
When: Only while an administrator is viewing the plugin’s dashboard in wp-admin.
Terms of Service: https://bplugins.com/terms-of-service/
Purpose: Provides opt-in usage tracking, licensing and checkout functionality.
See it in action
Screenshots & previews.
A Word document embedded on a page, rendered by Microsoft's own Office Web Viewer, so tables, fonts and layout stay exactly as you saved them.An Excel spreadsheet embedded in a post, with columns and formatting intact.The Document Viewer block: upload a file or paste a URL, pick a viewer and set the size, all in the sidebar.Block settings grouped into four panels: Document Source, Viewer Engine, Display Dimensions and Security Restrictions.Copy the shortcode from the document screen and paste it into any post, page or page builder.Document Viewer – let visitors view files right in the browser screenshot 6Document Viewer – let visitors view files right in the browser screenshot 7Document Viewer – let visitors view files right in the browser screenshot 8Document Viewer – let visitors view files right in the browser screenshot 9Document Viewer – let visitors view files right in the browser screenshot 10
02 / Source details
Gettingstarted.
From your dashboard
01Go to Plugins → Add New .
02Search for Document Viewer by bPlugins .
03Click Install Now , then Activate .
By upload
04Download the plugin zip from WordPress.org.
05Go to Plugins → Add New → Upload Plugin .
06Choose the zip, click Install Now , then Activate .
Adding your first document
07Go to Document Viewer → Add New in the admin menu.
08Upload a Word, Excel, PowerPoint or PDF file, or paste a direct URL.
09Choose the viewer engine and set the width and height.
10Copy the [office_doc] shortcode and paste it into any post or page. Or add the Document Viewer block in the Block Editor instead.
03 / Source details
Frequently asked questions.
How do I embed a Word document in WordPress?
Install Document Viewer, add the Document Viewer block (or the [office_doc] shortcode), upload your .doc or .docx file and choose the Microsoft Office Web Viewer. The document appears on the page with its original formatting.
How do I embed an Excel spreadsheet in WordPress?
The same way: upload your .xls or .xlsx file in the block or the document screen and choose the Microsoft viewer. Columns, cell formatting and charts stay as you saved them.
How do I embed a PowerPoint presentation in WordPress?
Upload your .ppt or .pptx file and choose the Microsoft viewer. Visitors can click through the slides on the page.
Can I embed a PDF?
Yes. For PDF files the Google Docs Viewer is usually the better choice.
What is the shortcode?
[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.
Which file types can I embed?
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.
Is Document Viewer free?
Yes. Both viewer engines, the Gutenberg block, the shortcode and custom sizing are free. Pro adds cloud sources, a download button and display and protection controls.
Do I need to convert my files first?
No. Upload the .docx, .xlsx or .pptx you already have. There is no conversion to PDF or HTML.
Do my visitors need Microsoft Office installed?
No. The file is rendered in the browser. Visitors need nothing installed, on desktop or mobile.
Does it work on mobile?
Yes. The document opens in the mobile browser. Set the width and height to suit your layout.
Which viewer should I choose?
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.
My document is not showing. What should I check?
Most often the file is not publicly reachable. Microsoft and Google fetch the file over the internet, so a file behind a login, on a password-protected site or on a local development site will not render. Very large files can also take a long time to load. If it still does not work, contact support .
Is my document sent to a third party?
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.
Does the document need to be publicly reachable?
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.
Does it work with Elementor, Divi or another page builder?
Yes. Use the [office_doc] shortcode in any builder with a shortcode widget: Elementor, Divi, Bricks, WPBakery, Beaver Builder, Oxygen and others.
Does it work with the Classic Editor?
Yes. Paste the [office_doc] shortcode into the Classic Editor.
Can I show a download button?
The download button, along with filename display, pop-out control and content protection, is part of the Pro version.
Can I stop people copying the text?
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.
Is there a file size limit?
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.
What is the difference between Document Viewer and Document Embedder?
Document Viewer is small and focused on Office files and PDF, rendered by Microsoft or Google. Document Embedder supports 16+ file types, four viewers, a 3D FlipBook and a searchable document library.
Where do I report security bugs found in this plugin?
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.
FinderPress Media Auditor helps site administrators scan for broken images, missing Media Library files, unreachable media URLs, and other media issues across WordPress content. Use it to audit images, video, audio, PDFs, featured images, and attachment files without sending scan data to an external
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati