Production DOCX merge.
Without the Aspose bill.
Merge a base Word template with N source documents into a single .docxthat opens cleanly — no repair dialog, no broken styles, no missing headers. The merge behavior you'd build yourself if you had a year.

curl -X POST https://mergedocx-production.up.railway.app/v1/merge \
-H "Authorization: Bearer $MERGEDOCX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"base_docx_ref": "templates/contract.docx",
"replacements": {
"client_name": "ACME Corp",
"effective_date": "2026-04-20"
}
}' \
--output merged.docx200 OK with merged DOCX bytes and a stats header. Need to merge multiple source documents in one call? Same endpoint — full request shape in the API reference.What you're actually buying
DOCX merge looks easy. The output that survives Word's open-and-save cycle is the part nobody warns you about.
You've seen these.
Anyone who's tried merging Word documents — with docx-merger, python-docx, naive zip-and-replace, or LibreOffice headless — has hit at least three of the failure modes on the right.
The Word file format is forty thousand pages of spec plus the parts Microsoft didn't document. mergedocx is what happens when you spend long enough on the second part to ship something that doesn't need a follow-up bug report.
- ✓"We found a problem with some content. Recover?"
- ✓Heading1 from doc B inherits doc A's font
- ✓Numbered lists restart at 1 mid-document
- ✓Footer from doc 2+ silently disappears
- ✓Embedded image scrambled or missing
- ✓Opens in LibreOffice, breaks in Word for Mac
- ✓Hyperlink jumps to the wrong target
- ✓File size doubles for no apparent reason
From many Word files to one, in a single API call
mergedocx is a hosted service. You call it over HTTPS with your documents; it returns the merged Word file. No desktop app, no plugin, no Office install on your servers.
What people build with it
Anywhere a program needs to produce a finished Word document from a template plus data or other documents — without a human opening Word.
Start merging in minutes
Sign up for a free account, grab an API key, and make your first merge call. No credit card required.