Api2Pdf is the nearest match on this list to Gotenberg's job, putting three conversion engines, Headless Chrome among them, behind one API with a self-hosted container option. Prince, PDFreactor and WeasyPrint suit print-quality layout; Puppeteer and Browserless suit browser rendering; DocRaptor, PDFShift and CloudConvert are hosted APIs; wkhtmltopdf and LibreOffice cover the basics.
Gotenberg calls itself a Docker-based API for PDF conversion, so replacing it starts with one decision: do you want to keep running a converter in your own container, or hand the conversion to someone else's servers? Of the 11 tools below, 4 mention Docker or a self-hosted container on their own pages, and the rest are libraries, command line tools, desktop software or hosted APIs.
What sits behind a PDF conversion service
Under the hood, HTML to PDF happens in one of two kinds of engine. A browser engine loads the page the way Chrome would, runs its JavaScript and prints it. A print engine reads the HTML and CSS as a document and lays it out for paper, with running headers, footnotes and page numbers handled by CSS rules. Office files are a third job again: a Word or Excel file has to be opened by an office suite before it can become a PDF.
How I put this together: I read each project's or vendor's own pages in November 2026, their home, pricing and documentation pages, and nothing else. I didn't install or run any of these tools. Paged.js wouldn't load, and Playwright was left out because its pages are about testing and overlap closely with a browser library already listed.
Eleven tools that can take over Gotenberg's job
wkhtmltopdf
wkhtmltopdf is a pair of open source LGPLv3 command line tools that render HTML into PDF and images with the Qt WebKit engine, run fully headless and ship with a C library. Skip it if Word or Excel files sit in your conversion queue.
WeasyPrint
WeasyPrint is free, open source software that plugs into your applications and turns HTML pages into documents, and reports 25M downloads last month. Skip it if you're in the USA or Canada and want its paid support.
Prince
Prince, from YesLogic, handles headers, footers, page numbers, footnotes and cross-references from HTML, XML or SVG, with Python and Node.js packages, Java and .NET libraries and Docker images. Skip it if you need free commercial use, as its site sends commercial users to Buy License.
PDFreactor
PDFreactor comes as a RESTful, language-agnostic web service you run on-premise or as a Java library, and you can request a fully-featured free trial. Skip it if you need to buy this week, as its pricing page showed ordering as temporarily unavailable.
DocRaptor
DocRaptor is a hosted HTML to PDF API built on the Prince generator, with a 99.99% uptime guarantee, SOC2 and HIPAA compliance, and accessible PDFs to WCAG 2.0 and Section 508. Skip it if the conversion must run on your own server.
PDFShift
A hosted HTML to PDF API, PDFShift starts free with 50 conversions a month and counts one credit per 5Mb of output, so a 14Mb document uses three. Skip it if free-plan files would pass 15Mb or need longer than 30 seconds.
Api2Pdf
Api2Pdf puts Headless Chrome, wkhtmltopdf and LibreOffice behind one API, converts Word, Excel, PowerPoint and 100+ file types to PDF, and offers managed hosting or a self-hosted container. Skip it if single jobs need over 90 seconds or 2 GB RAM.
Browserless
Browserless runs managed headless browsers, makes screenshots and PDFs from any URL by API, includes 1,000 free units a month and has a self-hosted option. Skip it if you want a document converter rather than a browser platform.
CloudConvert
CloudConvert handles 221 formats across 11 categories through jobs built from import, convert and export tasks, and removes files after processing. Skip it if you want to pick the rendering engine yourself, since it selects vendor or open-source converters per file type.
LibreOffice
LibreOffice is a free, open source office suite of six tools, Writer, Calc, Impress, Draw, Base and Math, offered at no cost and with no forced AI. Skip it if you need a ready REST endpoint, as its homepage presents a desktop suite.
Puppeteer
Puppeteer is a JavaScript library that controls Chrome or Firefox over the DevTools Protocol or WebDriver BiDi, runs headless by default, and offers puppeteer-core to skip the bundled Chrome download. Skip it if nobody on your team writes JavaScript.
Reading the vendor pages side by side
Each cell is matched to wording on that tool's own site, and Not published means I searched the page text for the column's key words and found nothing.
| Tool | How you run it | Free route | Office files | Docker or container |
|---|---|---|---|---|
| wkhtmltopdf | Command line tools and a C library | Open source, LGPLv3 | Not published | Not published |
| WeasyPrint | Library plugged into your applications | Free and open source | Not published | Not published |
| Prince | Packages, libraries and Docker images | Not published | Not published | Docker images |
| PDFreactor | On-premise web service or Java library | Free trial on request | Not published | Docker named in its site menu |
| DocRaptor | Hosted HTML to PDF API | Sign up for free | Not published | Not published |
| PDFShift | Hosted HTML to PDF API | 50 conversions a month free | Not published | Not published |
| Api2Pdf | Managed hosting or self-hosted | One month of free credit | Word, Excel, PowerPoint via LibreOffice | Self-hosted container |
| Browserless | Managed browsers or self-hosted | 1,000 free units a month, no card | Not published | 175M+ Docker pulls |
| CloudConvert | Hosted API jobs | Free plan for personal use, testing and hobby projects | Office files among 221 formats | Not published |
| LibreOffice | Desktop office suite | Free and open source | Word processor and spreadsheet apps; PDF export not stated | Not published |
| Puppeteer | JavaScript library driving a browser | Not published | Not published | Not published |
A free route, whether open source, a free plan or a trial, is published for 9 of the 11. Only 2 of the 11 state conversion from Word or Excel to PDF, and Docker or a container is mentioned by 4 of the 11.
Browser engines, print engines and office converters
Browser-based tools are the natural fit when your PDFs start life as web pages: dashboards, receipts built with a front-end framework, anything that leans on JavaScript to render. You get exactly what Chrome shows. What you give up is fine control over pagination, and the memory cost of running a browser for every document adds up on a busy server.
Want AI doing the heavy lifting in your marketing?
I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.
Print engines come at the problem from the publishing side. They read CSS paged media rules for running headers, page counters and footnotes, which is why invoices, reports and books look more like typeset documents. Of the print engines here, one sends commercial users to buy a licence, one wasn't taking orders when I read its pricing page, and the open source one sells support rather than the software.
Office converters fill the gap that pure HTML tools leave. If your users upload Word, Excel or PowerPoint files, you need an office suite somewhere in the chain, whether you run it yourself or call an API that runs it for you. In the table, only two tools state Word or Excel to PDF on their own pages, so check that column first if those uploads are part of your traffic.
Hosted APIs wrap one or more of those engines behind an HTTP call. They take the container, the fonts and the scaling off your hands, and charge by conversion, credit or compute time instead. The trade is that your documents leave your servers, so read each provider's retention line before sending anything sensitive.
Do you make PDF generation or document conversion tools? Tool makers can ask to be considered for a featured place on this list.
Where each kind earns its place
A small team generating invoices from its own HTML templates can get far with an open source print library inside the app, or a hosted API on its free allowance. There's no container to babysit, and both are quick to wire into an existing codebase. My guide to PDF APIs compares more hosted options.
A product that turns customer dashboards or reports into PDFs at volume is better served by a browser engine it controls, either a JavaScript library on its own servers or a managed browser service. Count the concurrent conversions you need at peak before choosing, because browser sessions are heavy. For the browser side, my roundup of headless browsers goes deeper.
A business that receives Word and Excel files from customers needs an office converter. Running an office suite headless yourself keeps files in-house; calling an API that runs one saves you the upkeep.
Regulated work, such as health or finance, puts accessibility and compliance ahead of price. One hosted API here states SOC2 and HIPAA compliance and accessible PDF output, and one on-premise engine keeps every document inside your own network.
Spotting trouble after the switch
The first sign of a mismatch is layout drift. Fonts that Gotenberg's container had installed may be missing on the new setup, so text reflows and page breaks land in odd places. Render ten of your busiest templates on both systems and compare them page by page before you switch traffic over.
Timeouts are the second. Hosted APIs set limits on file size and seconds per job, and a large report that converted fine in your own container can fail on a free tier. Log every failed conversion for the first week with its file size and duration.
The third is cost creep, where a credit-based plan counts large documents as several conversions. Check your biggest real files against the pricing rules before you commit a year.
Want your tool on this list? Featured spots and reviews here are paid partnerships. Here's how to partner with me.
Frequently asked questions
Why do converted PDFs look different after leaving Gotenberg?
Fonts installed in your old container may be missing on the new setup, so text reflows and page breaks move. Install the same fonts, then render your busiest templates on both systems and compare them page by page.
Is there a free alternative to Gotenberg?
Yes. Three tools here describe themselves as open source, and two hosted services publish free monthly allowances. Watch the small print: one counts a 14Mb file as three credits and caps free files at 15Mb.
Which Gotenberg alternatives convert Word and Excel files?
Only 2 of the 11 state it: one hosted API lists Word, Excel and PowerPoint to PDF, and one conversion service covers common office files among 221 formats. The desktop office suite on this list does not state PDF export on its homepage.
Can I self-host a Gotenberg alternative?
Yes. Docker or a self-hosted container is mentioned by 4 of the 11 tools here, and the open source libraries and command line tools run on your own servers by design.


