# docxtemplater

> Powerful Word, PowerPoint and Excel generation

Source: https://talira.ai/catalog/docxtemplater-gjcbyhm2
Every listing: https://talira.ai/catalog.md

- Kind: Open core
- Types: Library
- Categories: [documents / generation / word templates](https://talira.ai/categories/documents/generation/word-templates), [documents / office](https://talira.ai/categories/documents/office), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Platforms: linux, macos, windows, web, docker
- Licence: MIT OR GPL-3.0
- Pricing: Free tier
- Pricing notes: Core free and open source (text tags, conditions, loops, delimiters). Paid modules, billed yearly in EUR: one module 500€/year; PRO up to 4 modules 1,250€/year; Enterprise all modules 3,000€/year (priority support, Docker image); Premium all modules 9,000€/year (4 days of included development, 25 instances). One Module and PRO are limited to 5 instances. Two-week money-back guarantee.
- Free tier: yes
- Self-hostable: yes
- Plugins: yes
- Backed by: [Coding Puffin](https://talira.ai/orgs/coding-puffin.md)
- Creator: Edgar Hipp

docxtemplater is a JavaScript library that generates DOCX and PPTX documents from templates made in Word or PowerPoint, replacing {tags} with JSON data and supporting loops and conditions, so non-programmers can edit the templates. It runs in Node.js and in the browser. The open-source core is MIT (or GPLv3) and covers tag replacement, conditions, loops and custom delimiters; paid modules add images, HTML content, tables, charts, Excel (XLSX) templating, dynamic slides, subtemplates, footnotes, QR codes, ODT output and more.

## Links

- Website: https://www.docxtemplater.com/
- GitHub: https://github.com/open-xml-templating/docxtemplater
- Docs: https://docxtemplater.com/docs/
- Pricing: https://www.docxtemplater.com/pricing/

## Problems it solves

- fill a Word document with customer data from JSON in my Node app, keeping all the original formatting
- our ops team edits contract wording in Word and I don't want to touch code every time they change a sentence
- repeat a table row for every line item in an order inside a .docx
- show or hide whole paragraphs in a Word template depending on the data
- generate a .docx entirely in the browser and let the user download it
- insert a different photo or signature image into each generated Word document
- produce PowerPoint decks from data, one slide per record
- fill an Excel template with rows of data and keep its styling
- put rich text from our HTML editor into a generated Word file
- mail merge in JavaScript without Microsoft Office installed on the server
- template errors are hard to find, I want to know which placeholder in the document is broken

## Features

- {tag} replacement in DOCX and PPTX (free core)
- Loops and conditions (free core)
- Custom delimiters (free core)
- Paid modules: Image, HTML, Table, Chart, Styling
- Paid modules: XLSX templating, Slides, Pptx-sub, Html-pptx, Html-xlsx
- Paid modules: Subtemplate, Subsection, Footnotes, Paragraph-placeholder, Word-run, Meta
- Paid modules: Error-location (errors as Word comments), QR code, ODT

## Ways to run it

### Free (open source core)

You run it, MIT OR GPL-3.0. Price: free.

Only in this edition:

- {tag} replacement, conditions, loops, custom delimiters

Not included:

- paid modules (images, HTML, tables, charts, etc.)
- email support

You arrange:

- Node.js or a browser bundle

Pricing: https://www.docxtemplater.com/pricing/

### One module and PRO

You run it, under a commercial licence. Price: One module 500€/year; PRO (up to 4 modules) 1,250€/year.

Only in this edition:

- paid modules of your choice (images, HTML, tables, charts and others): 1 with One module, up to 4 with PRO
- email support (48h average)

Not included:

- the other modules
- the Docker image with an HTTP API
- custom licence terms

You arrange:

- up to 5 instances per licence

Pricing: https://www.docxtemplater.com/pricing/

### Enterprise and Premium

You run it, under a commercial licence. Price: Enterprise 3,000€/year; Premium 9,000€/year.

Only in this edition:

- all modules
- a preconfigured Docker image with an HTTP API and SDKs for 12 languages
- priority support (Premium adds phone and chat, a monthly call and 4 days of development or template work, up to 25 instances)
- custom licence terms possible

You arrange:

- a server or VM to run the Docker image, 2 GB RAM or more per instance

Self-hosting docs: https://docxtemplater.com/docker

## Capabilities

- Takes plugins: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.57 out of 1.
Signals: maintenance 0.57, adoption 0.71, momentum 0.41, community 0.63, backing 0.70, extensibility 0.20.

- last commit 39 days ago
- 18 commits in the last 90 days
- 3.6k GitHub stars
- 36 contributors
- backed by Coding Puffin
- created by Edgar Hipp
- used by General Electric, Dell, Airbus, Samsung
- has a plugin system

## Alternatives

- [docxtpl](https://talira.ai/catalog/docxtpl-yhjaa0ty.md): Use a docx as a jinja2 template
- [DocSpring](https://talira.ai/catalog/docspring-kjdwby1j.md): Fill PDF forms, generate PDFs and Word documents, and collect e-signatures with one API.
- [Carbone](https://talira.ai/catalog/carbone-hz5gt655.md): Generates PDF, DOCX and other documents from JSON data and Office templates
- [Sablon](https://talira.ai/catalog/sablon-5bjabghv.md): Ruby document template processor based on docx templates and Mail Merge fields
- [Adobe PDF Services API](https://talira.ai/catalog/adobe-pdf-services-api-s29kgg3f.md): Modern cloud-based capabilities for PDF manipulation.
- [Docmosis](https://talira.ai/catalog/docmosis-xet3917k.md): API-first, template-based document generation
