Open MS Office Files in the Browser Using JavaScript

Use JavaScript to open Word, Excel, and PowerPoint documents directly on any browser — no external dependencies or MS Office licenses required. Documents can be opened from a number of input sources, including remote URLs, blobs, array buffers, local storage, Base64 data, and more. The opened Office document can be displayed in the viewer or processed in a headless environment, where it can be annotated, edited, converted, and more.

Try for free Launch demo

Nutrient SDKs are deployed in some of the world’s most popular applications, such as those made by Autodesk, Disney, UBS, Dropbox, IBM, and Lufthansa.

Key capabilities

  • PDF and MS Office — Open PDF, Word, Excel, and PowerPoint documents

  • Client-side — Workload is offloaded to client (no server needed)

  • Local storage or remote URL — Open files that are stored anywhere

  • Input data types — Load from a blob, ArrayBuffer, or Base64

  • Secured PDFs — Open encrypted or password-protected files

  • Extendable — Add annotation, signing, editing, forms, and more

Guides for opening a document

Open from a remote URL
How to open a PDF document from a remote URL

Open from a blob
How to open a PDF document from a blob

Open from an ArrayBuffer
How to open a PDF document from an ArrayBuffer

Open from local storage
How to open a PDF document from local storage

Open from Base64 data
How to open a PDF document from Base64 data

Open from Document Engine
How to open a PDF document from Document Engine

Open from SharePoint Online
How to open a PDF document from SharePoint Online

Open from SharePoint On-Premises
How to open a PDF document from SharePoint On-Premises

Open from Microsoft Teams
How to open a PDF document from Microsoft Teams

Open from Microsoft OneDrive
How to open a PDF document from Microsoft OneDrive

Open password-protected PDFs
How to transparently open password-protected PDFs

Open HTTP authenticated PDFs
How to transparently open PDFs protected by HTTP authentication

Open encrypted PDFs
How to decrypt a PDF that uses custom encryption

Open on a specific page
How to open a PDF and show a specific page after loading

Framework Support

PSPDFKit for Web is compatible with all JavaScript frameworks, including React, Angular, Vue, Svelte, Blazor, Next.js, Nuxt.js, TypeScript, and jQuery. It’s also compatible with Electron, ASP.NET, PHP, Laravel, Ruby on Rails, and HTML5. It just needs a DOM container to append the viewer, which is possible with any framework.

Free Trial

Start your free trial for unlimited access and expert support.