Title: Document Viewer &#8211; let visitors view files right in the browser
Author: bPlugins
Published: <strong>نومبر 13, 2019</strong>
Last modified: ستمبر 30, 2026

---

Search plugins

![](https://ps.w.org/embed-office-viewer/assets/banner-772x250.png?rev=3623277)

![](https://ps.w.org/embed-office-viewer/assets/icon.svg?rev=3623277)

# Document Viewer – let visitors view files right in the browser

 By [bPlugins](https://profiles.wordpress.org/bplugins/)

[Download](https://downloads.wordpress.org/plugin/embed-office-viewer.2.4.2.zip)

 * [Details](https://bcc.wordpress.org/plugins/embed-office-viewer/#description)
 * [Reviews](https://bcc.wordpress.org/plugins/embed-office-viewer/#reviews)
 *  [Installation](https://bcc.wordpress.org/plugins/embed-office-viewer/#installation)
 * [Development](https://bcc.wordpress.org/plugins/embed-office-viewer/#developers)

 [Support](https://wordpress.org/support/plugin/embed-office-viewer/)

## Description

**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.

[**Live Demo**](https://bplugins.com/products/document-viewer/#demos) | [**Pricing**](https://bplugins.com/products/document-viewer/pricing)
| [**Support**](https://bplugins.com/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 for either.

### What you can embed

**Word** — .doc, .docx
 **Excel** — .xls, .xlsx **PowerPoint** — .ppt, .pptx **PDF**—.
pdf

Files can come from your Media Library or from a direct URL.

### Why people use this one

 * **A spreadsheet that still looks like a spreadsheet.** Google’s viewer often 
   flattens Excel formatting. Microsoft’s does not.
 * **No conversion.** You do not turn a .docx into a PDF or an HTML table first.
   Upload the file you already have.
 * **Visitors do not need Office.** They read it in the browser, on a phone as easily
   as a desktop.
 * **It stays small.** One shortcode, one block, a handful of settings. If you want
   a document library, a flipbook and sixteen file formats, that is a different 
   plugin.

### Who uses it for what

 * **Schools and training sites** — handouts and slide decks students read in the
   browser.
 * **Theatre, events and clubs** — schedules and scripts shared with cast and crew.
 * **Accountants and consultants** — rate cards and spreadsheets a client reads 
   without downloading.
 * **Councils and associations** — minutes, forms and policies published as the 
   Word files they already keep.
 * **Internal pages** — a price list or process document embedded on a members-only
   page.

### How to add a document

**Gutenberg block**

 1. Open any post or page in the Block Editor.
 2. Add the **Document Viewer** block.
 3. Upload a file or paste a URL, choose the viewer, set the size.

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.

### 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

 * **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**](https://bplugins.com/products/document-viewer/pricing)

### What users say

**⭐⭐⭐⭐⭐ [Exactly What I Need](https://wordpress.org/support/topic/exactly-what-i-need-161/)**
_“
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](https://wordpress.org/support/users/jfortune/)

**⭐⭐⭐⭐⭐ [Impressively Stable](https://wordpress.org/support/topic/impressively-stable/)**
_“
Nice wp plugin ever. I’ve use it for 4 years.”_ — [aircess](https://wordpress.org/support/users/aircess/)

**⭐⭐⭐⭐⭐ [Does the job well.](https://wordpress.org/support/topic/does-the-job-well-131/)**
_“
This plugin works fine”_ — [muhammadarooj](https://wordpress.org/support/users/muhammadarooj/)

Liked it? Disliked it? Want a feature? [**Send us your feedback**](https://bplugins.com/support/)

### Help translate this plugin

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/

### Other plugins by bPlugins

 * [**Document Embedder**](https://bplugins.com/products/document-embedder/) – 16
   + file types, four viewers, 3D FlipBook and a searchable document library.
 * [**PDF Poster**](https://bplugins.com/products/pdf-poster/) – display and embed
   PDF files in different styles.
 * [**HTML5 Video Player**](https://bplugins.com/products/html5-video-player/) –
   single videos and playlists in multiple skins.
 * [**HTML5 Audio Player**](https://bplugins.com/products/html5-audio-player/) –
   audio with visualisations.
 * [**3D Viewer**](https://bplugins.com/products/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](https://go.microsoft.com/fwlink/?LinkID=206977)
 * **Privacy Policy:** [https://go.microsoft.com/fwlink/?LinkId=521839](https://go.microsoft.com/fwlink/?LinkId=521839)

#### Google Docs Viewer

 * **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](https://policies.google.com/terms)
 * **Privacy Policy:** [https://policies.google.com/privacy](https://policies.google.com/privacy)

#### bPlugins API

 * **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/](https://bplugins.com/terms-of-service/)
 * **Privacy Policy:** [https://bplugins.com/privacy-policy/](https://bplugins.com/privacy-policy/)

#### WordPress.org Plugins API

 * **Service:** WordPress.org Plugins Info API – `https://api.wordpress.org`
 * **What it does:** The dashboard queries the public WordPress.org Plugins API 
   to list other plugins published by the author.
 * **What data is sent:** A public, read-only query. No personal data is sent.
 * **When:** Only while an administrator is viewing the plugin’s dashboard in wp-
   admin.
 * **Privacy Policy:** [https://wordpress.org/about/privacy/](https://wordpress.org/about/privacy/)

### Third-Party Libraries

#### Freemius SDK

 * **Source:** [https://freemius.com/](https://freemius.com/)
 * **GitHub:** [https://github.com/Freemius/wordpress-sdk](https://github.com/Freemius/wordpress-sdk)
 * **License:** GPLv3 – [https://github.com/Freemius/wordpress-sdk/blob/master/LICENSE.txt](https://github.com/Freemius/wordpress-sdk/blob/master/LICENSE.txt)
 * **Purpose:** Provides opt-in usage tracking, licensing and checkout functionality.

## Screenshots

[⌊A Word document on the page — rendered by Microsoft's own Office Web Viewer, so
tables, fonts and layout stay exactly as you saved them.⌉⌊A Word document on the
page — rendered by Microsoft's own Office Web Viewer, so tables, fonts and layout
stay exactly as you saved them.⌉[

A Word document on the page — rendered by Microsoft’s own Office Web Viewer, so 
tables, fonts and layout stay exactly as you saved them.

[⌊An Excel sheet embedded in a post, with columns and formatting intact.⌉⌊An Excel
sheet embedded in a post, with columns and formatting intact.⌉[

An Excel sheet embedded in a post, with columns and formatting intact.

[⌊The Document Viewer block — upload a file or paste a URL, pick a viewer, set the
size, all in the sidebar.⌉⌊The Document Viewer block — upload a file or paste a 
URL, pick a viewer, set the size, all in the sidebar.⌉[

The Document Viewer block — upload a file or paste a URL, pick a viewer, set the
size, all in the sidebar.

[⌊Block settings grouped into four panels: document source, viewer engine, display
dimensions and security restrictions.⌉⌊Block settings grouped into four panels: 
document source, viewer engine, display dimensions and security restrictions.⌉[

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.⌉⌊Copy the shortcode from the document screen and paste it into any
post, page or page builder.⌉[

Copy the shortcode from the document screen and paste it into any post, page or 
page builder.

[[

[[

[[

[[

[[

## Blocks

This plugin provides 1 block.

 *   Document Viewer You can Embed Microsoft Word, Excel And Powerpodint File in
   wordpress Using 'Document Viewer for Office' Plugin.

## Installation

**From your dashboard**

 1. Go to **Plugins  Add New**.
 2. Search for **Document Viewer** by **bPlugins**.
 3. Click **Install Now**, then **Activate**.

**By upload**

 1. Download the plugin zip from WordPress.org.
 2. Go to **Plugins  Add New  Upload Plugin**.
 3. Choose the zip, click **Install Now**, then **Activate**.

**Adding your first document**

 1. Go to **Document Viewer  Add New** in the admin menu.
 2. Upload a Word, Excel, PowerPoint or PDF file, or paste a direct URL.
 3. Choose the viewer engine and set the width and height.
 4. Copy the `[office_doc]` shortcode and paste it into any post or page — or add the**
    Document Viewer** block in the Block Editor instead.

## FAQ

### 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](https://wordpress.org/plugins/document-emberdder/)
instead.

### 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.

### 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.

### 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.

### 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.

### 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](https://patchstack.com/database/vdp/9e5fb774-c5c5-4253-bec9-fd5a4210d09b).
The Patchstack team will assist you with verification, CVE assignment, and notify
the developers of this plugin.

## Reviews

![](https://secure.gravatar.com/avatar/21491678c3e4a7d3c6ed32e07d43ad79cf4a9c252986fba953e6cdff017c9610?
s=60&d=retro&r=g)

### 󠀁[The full version uses subscription charges](https://wordpress.org/support/topic/the-full-version-uses-subscription-charges/)󠁿

 [Polaris](https://profiles.wordpress.org/namrur/) مارچ 9, 2026 1 reply

Beware, this pluging uses a very common marketing methode for WordPress plugins.
The paiid version loses all the Premium feature at the moment you are not having
an active subscription. I.e, you are not just stopped from receiving updates, you
just thrown back to the basic version. Additionally, there are many non constant
display issues related to scrolling the document inside the infrare, tool bar changes
it's look spontaneously, and there is no document preview ahown on mobile, but just
a button to open the file in new window.

![](https://secure.gravatar.com/avatar/85f7fc8d659a1a70858b18ed446d5722003966aa3bdd93b93d4cba9178b17958?
s=60&d=retro&r=g)

### 󠀁[Impressively Stable](https://wordpress.org/support/topic/impressively-stable/)󠁿

 [aircess](https://profiles.wordpress.org/aircess/) اپریل 4, 2023

Nice wp plugin ever. I've use it for 4 years.

![](https://secure.gravatar.com/avatar/51352ef9f16c138df0fa20be525fae17b844e465e868078393bbf36f2254edcf?
s=60&d=retro&r=g)

### 󠀁[Does the job well.](https://wordpress.org/support/topic/does-the-job-well-131/)󠁿

 [muhammadarooj](https://profiles.wordpress.org/muhammadarooj/) نومبر 24, 2022

This plugin works fine and s

![](https://secure.gravatar.com/avatar/f9b44ad61ebd7d3d23cd27079083f5aaf11c9cfa6ccf9a3c9dab15f17beb9bb3?
s=60&d=retro&r=g)

### 󠀁[Exactly What I Need](https://wordpress.org/support/topic/exactly-what-i-need-161/)󠁿

 [jfortune](https://profiles.wordpress.org/jfortune/) اکتوبر 9, 2022

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.

![](https://secure.gravatar.com/avatar/c84ce5671f2a24d552c01458dc6ee3455e4bb1986fb8a2ff74318fe962a68cee?
s=60&d=retro&r=g)

### 󠀁[NIce Plugin](https://wordpress.org/support/topic/nice-plugin-4720/)󠁿

 [meshcreation](https://profiles.wordpress.org/meshcreation/) ستمبر 5, 2022

Nice plugin, does the job well, recommended

![](https://secure.gravatar.com/avatar/4c28c26aae04c11f8a1965edb95f9e8aec88f2e8a85ed9d65d8d1e2f43939f53?
s=60&d=retro&r=g)

### 󠀁[Does What I Need](https://wordpress.org/support/topic/does-what-i-need-85/)󠁿

 [theinfamousj](https://profiles.wordpress.org/theinfamousj/) اگست 26, 2022

I needed to be able to embed externally hosted PDF documents into my wordpress posts
and pages while preserving the embedded clickable links in those documents. This
plugin does what I need, including offering viewers the ability to download the 
document. five stars

 [ Read all 52 reviews ](https://wordpress.org/support/plugin/embed-office-viewer/reviews/)

## Contributors & Developers

“Document Viewer – let visitors view files right in the browser” is open source 
software. The following people have contributed to this plugin.

Contributors

 *   [ bPlugins ](https://profiles.wordpress.org/bplugins/)
 *   [ Tanin Rahman ](https://profiles.wordpress.org/taninrahman/)
 *   [ Freemius ](https://profiles.wordpress.org/freemius/)

[Translate “Document Viewer – let visitors view files right in the browser” into your language.](https://translate.wordpress.org/projects/wp-plugins/embed-office-viewer)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/embed-office-viewer/),
check out the [SVN repository](https://plugins.svn.wordpress.org/embed-office-viewer/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/embed-office-viewer/)
by [RSS](https://plugins.trac.wordpress.org/log/embed-office-viewer/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.4.2 – 11 August 2026

 * **Security:** Updated the Freemius SDK dependency to the latest version to patch
   identified vulnerabilities.

#### 2.4.1 – 27 June 2026

 * **Update:** Redesigned and integrated the new standardized help and demos admin
   dashboard.

#### 2.4.0 – 3 June 2026

 * **New:** Added four dedicated settings panels (Document Source, Viewer Engine,
   Display Dimensions, Security Restrictions) to group the Gutenberg block settings.
 * **New:** Added custom SVG icons inside the block settings panel titles.
 * **Update:** Redesigned block settings field titles to use friendlier, clearer
   wording for non-technical users.
 * **Update:** Consolidated admin asset enqueuing into a single class loader.
 * **Update:** Standardized core classes under `includes/core/` and helper files
   under `includes/helper/` for namespace consistency.
 * **Improvement:** Integrated Composer autoloading to boot and resolve PHP dependencies
   dynamically.
 * **Improvement:** Unified the legacy shortcode rendering pipeline to run through
   the Gutenberg block rendering engine via the native `render_block()` API.
 * **Improvement:** Replaced the block settings TabPanel with separate, sequential
   settings panels.
 * **Improvement:** Added detailed file format descriptions to simplify the document
   selector.
 * **Improvement:** Added a fixed height and fade-in transition to the upload UI
   to prevent layout jumping on tab change.
 * **Improvement:** Reorganized metabox fields into two tabbed sections: Document
   Settings and Security & Restrictions.
 * **Fix:** Resolved a fatal error during the `plugins_loaded` hook by replacing
   query loops with `get_posts()` in the ImportMeta class.
 * **Fix:** Resolved cross-origin iframe console errors in the block editor under
   content protection mode.
 * **Fix:** Resolved pop-out overlay alignment and responsiveness using CSS container
   queries.
 * **Fix:** Resolved Protect Content bypasses via text selection and keyboard shortcuts(
   Ctrl/Cmd + C, A, S, P).
 * **Fix:** Resolved Disable Full Screen and pop-out overlay style targeting mismatches.
 * **Fix:** Resolved missing i18n translation wrappers on the Protect Content toggle
   labels.

#### 2.3.3 – 8 November 2025

 * **Update:** Improved the block editor upload options.

#### 2.3.2 – 10 October 2025

 * **New:** Added a modern admin dashboard.

#### 2.3.1 – 12 July 2025

 * **Fix:** Resolved reported issues.

#### 2.3.0 – 10 May 2025

 * **Fix:** Resolved the text domain issue.
 * **New:** Added a fully featured Gutenberg block.

#### 2.2.10 – 29 January 2025

 * **Update:** Freemius WordPress SDK.

#### 2.2.9 – 4 July 2024

 * **Update:** Freemius WordPress SDK.

#### 2.2.7

 * **Update:** Freemius WordPress SDK.

#### 2.2.5

 * **Update:** Freemius WordPress SDK.

#### 2.2.4

 * **Fix:** Height issue.

#### 2.2.3

 * **Security:** Fixed a security issue.
 * **Improvement:** Performance.

#### 2.0.9

 * **New:** PDF viewer support.
 * **Improvement:** Performance.

#### 1.1

 * **New:** Document management screen.
 * **New:** Gutenberg block support.
 * **Improvement:** Performance.

## Meta

 *  Version **2.4.2**
 *  Last updated **3 weeks ago**
 *  Active installations **2,000+**
 *  WordPress version ** 6.5 or higher **
 *  Tested up to **7.1.3**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/embed-office-viewer/)
 * Tags
 * [document viewer](https://bcc.wordpress.org/plugins/tags/document-viewer/)[embed document](https://bcc.wordpress.org/plugins/tags/embed-document/)
 *  [Advanced View](https://bcc.wordpress.org/plugins/embed-office-viewer/advanced/)

## Ratings

 4.7 out of 5 stars.

 *  [  47 5-star reviews     ](https://wordpress.org/support/plugin/embed-office-viewer/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/embed-office-viewer/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/embed-office-viewer/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/embed-office-viewer/reviews/?filter=2)
 *  [  4 1-star reviews     ](https://wordpress.org/support/plugin/embed-office-viewer/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/embed-office-viewer/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/embed-office-viewer/reviews/)

## Contributors

 *   [ bPlugins ](https://profiles.wordpress.org/bplugins/)
 *   [ Tanin Rahman ](https://profiles.wordpress.org/taninrahman/)
 *   [ Freemius ](https://profiles.wordpress.org/freemius/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/embed-office-viewer/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.buymeacoffee.com/abuhayat)