Supercharged docx/pptx generation

Want to generate docx or pptx from inside your application ? By using docxtemplater, you will be able to customize your generated document using Word itself.


Easy to use

You don't need technical skills to edit a Word template, so it is ideal for your clients to customize their template.

Very robust

For each module, we write a full suite of tests with real docx documents to ensure that the generated documents are correct.

Support included

If you buy a license for docxtemplater pro, you get support per email to help you for any problems you may have.

Why use docxtemplater?

Super easy to install and set up

In less than five minutes you can install docxtemplater, create your first template and generate some docx from javascript objects or JSON

Works everywhere

docxtemplater works with nodejs version 0.10+ up to version 10, and in modern browsers (Chrome,Firefox,Safari,IE9+). It also has a command line interface.

Full Documentation

docxtemplater has extensive documentation available on Read the docs. See also our commercial FAQ and our technical FAQ for more information.

Features many different types of tags

With docxtemplater, you can insert text, but also have loops and conditions : {#tag} {/tag}, the possibility to add custom xml {@xml} , loop over table rows, or insert images {%image}

Open for extension

docxtemplater is open for extension with its module system (image replacing is a module). You can also define a custom parser to process the tags the way you want.

Fully tested

docxtemplater has automated tests that run locally and at each git push, covering a huge amount of possible inputs and verifying that the output is correct.


Open source



Startups, small business
Medium or Large companies
html v3.25.0
footnotes v3.1.4
image v3.8.3
slides v3.2.9
subtemplate v3.6.1
word-run v3.1.1
html-pptx v3.2.0
meta v3.2.3
qrcode v3.2.3
styling v3.3.1
subsection v3.3.7
table v3.11.3
pptx-sub v3.0.3
xlsx v3.4.1
Dedicated Support
€950 / year (per 100 Workers)
€2450 / year (per 100 Workers)
Credit Card
Credit Card

All sales come with a two week, 100% money back guarantee.
Read our commercial FAQ or our technical FAQ for more information.
Here is a more detailed list of all modules
You can also buy a license for one single module by following this link : Buy single module
If you would like to embed docxtemplater-pro in your virtual server or appliance, the pricing differ, please contact us.

Trusted and used by more than 20,000 developpers

The docxtemplater module helped our company a lot - it works well, even with a complex setup. I would personally like to thank the author, Edgar Hipp, for quick responses and fixes if they were needed. Edgar generally responded to our emails within a working day and fixed most bugs within 2 working days.

Erik Kramer

Founder and CEO at Cloud++ B.V

Thanks for your time and effort, I really appreciate it :)

@cades hong-jen kao

Full-stack Web Developer

First thanks for this lib. Using docx as a template is an awesome smart thing to do, great you made this stuff!

@ssured Sjoerd de Jong

Owner - Racido BV

I can highly recommend docxtemplater as a library for generating documents from custom templates. It is easily extendible, very fast and easy to use. Edgar has been extremely helpful and always available to get the most of the library. One of the best support experience I have ever made!

Martin Polasek

CEO - Inventify

Docxtemplater has been a spectacular library to use for generating documents from custom templates. It contains a wide array of features, including styling with HTML, images, and merging multiple documents together, all of which we use extensively. Edgar has been quick to respond to any concerns or use cases that we wanted to support, and we appreciate all the work that he has done for this library. We greatly advocate the use of his library, for it is a awesome library backed by an awesome developer!


Senior Software Engineer, NY-based Web Application Development Company

Once again: This is an awesome module!

Allan Ebdrup

CTO at Debitoor

Edgar Hipp

I'm the creator of docxtemplater. I work on making docxtemplater great since 2013.