A document editing API for DOCX files.
Read and change DOCX documents through an Office.js-compatible API. Run these operations in an open editor or against DOCX bytes on a server.
The initial renewal term is unlimited.
The initial renewal term is unlimited.
The initial renewal term is unlimited.
Use one document API in the browser and on the server.
Server-side DOCX editing
Office.js-compatible automation
How to edit DOCX files programmatically.
Use the Office.js-style load, write, and sync pattern in an open editor or a TypeScript backend.
- 01
Choose the document runtime
Attach the browser runtime to a React or Vue editor. Use the server runtime for Node routes, workers, and scripts.
- 02
Find text and structured fields
Search document text or address Structured Document Tags by ID, tag, or title. Load values before you read them.
- 03
Apply a batch and save the DOCX
Queue related writes, then call sync. The server runtime returns saved bytes. The browser host controls saving.
Examples by industry.
You define access, validation, retention, and approval rules. DOCX Editor applies supported document operations.
Legal
Contract lifecycle automation
- Replace defined terms
- Insert approved clauses
- Add comments and revisions
Healthcare
Forms and document generation
- Fill patient-facing templates
- Generate referral documents
- Update headers, paragraphs, and fields
Insurance
Policy and claims documents
- Generate notices from case data
- Update policy schedules
- Batch documents in server jobs
Common questions
How do I use the API in a React or Vue application?+
Use the browser runtime with the React or Vue editor. It reads and edits the document your user has open.
Can I use the API from a TypeScript backend?+
Yes. Pass DOCX bytes to the server runtime from a Node route, worker, script, or background job. It returns saved bytes.
Does the API need any other software installed?+
No. Browser and server operations run in your JavaScript runtime.
Can existing Office.js code work with this API?+
The object model follows Office.js patterns. Check the compatibility guide for supported operations.
Can the DOCX editor API create tracked changes?+
Yes. Add Pro to write proposed insertions, replacements, and deletions as native tracked changes.
Add DOCX editing to your application.
Start with the open-source editor. Add commercial review and automation features when your workflow needs them.