Skip to content

Gotenberg

Self-hosted Docker API that converts web pages and office files to PDF and edits them

Permissive (OSI) · MIT
  • Self-hosted

Listed by , founder & editor

80

Health

Thriving

Overview

Stars

13,657

Last commit

2 days ago

Nov 2026

Repository age

8 years

since Mar 2018

Latest version

v9.9.3

Nov 2026

Contributors

–

2 active in 90 days

Releases

25

last 12 months

Docker pulls

109M

gotenberg/gotenberg

Language

Go

Gotenberg is an API for PDF work that runs as a Docker container. You send files or a URL as multipart/form-data and get a PDF back. It bundles Chromium and LibreOffice, so you do not install or maintain those tools or their fonts on your own servers.

HTML, URLs and Markdown are converted through headless Chromium. Office documents go through LibreOffice, which covers more than 100 formats. After conversion you can merge, split, rotate and stamp PDFs, fill or flatten forms, sign, timestamp, encrypt, redact and optimize them. It can validate and fix files to PDF/A and PDF/UA, including Factur-X, render pages as images, and read or write metadata, bookmarks and attachments.

The project is written in Go, uses the MIT license, and has been developed since 2018. It is a self-hosted alternative to paid PDF conversion and document generation APIs, and to desktop tools you would otherwise script by hand.

Who it's for

Backend developers generating invoices and reports as PDFs

One HTTP call turns an HTML page into a PDF, with PDF/A output available in the same request.

Skip if: You need a point-and-click editor rather than an API.

Teams converting Word, Excel or PowerPoint files on the server

LibreOffice runs inside the container, so no office suite needs installing on your hosts.

Skip if: Your documents depend on Microsoft-specific rendering that LibreOffice does not reproduce.

Companies with archival or e-invoicing requirements

It validates and remediates PDFs against PDF/A, PDF/UA and Factur-X.

Skip if: You do not run containers and cannot add one to your stack.

The problem it solves

Converting HTML and office files to PDF usually means installing and patching Chromium, LibreOffice and fonts on your servers. Gotenberg wraps those tools behind one API in a container. You also get merging, signing and compliance checks without extra libraries.

Strengths

  • Runs as one Docker image with Chromium and LibreOffice included
  • Converts 100+ office formats plus HTML, URLs and Markdown
  • Validates and remediates PDF/A, PDF/UA and Factur-X
  • Also merges, splits, stamps, signs, encrypts and redacts PDFs
  • MIT license with 25 releases in the last year

Trade-offs

  • Needs Docker or another container runtime
  • API only, with no graphical interface
  • Conversion quality for office files depends on LibreOffice
  • Version 9 changed routes and fields from version 8, so upgrades need migration work

Self-host Gotenberg

Self-hostable
Yes
Docker image
gotenberg/gotenberg
Docker Compose
The repository ships a Compose file

Quick start

docker run --rm -p 3000:3000 gotenberg/gotenberg:9

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is Gotenberg free?

Yes. It uses the MIT license, so you can run and modify it at no cost.

How do I run it?

Start the gotenberg/gotenberg:9 Docker image and publish port 3000. Then send requests over HTTP.

Which formats does it convert?

It converts HTML, URLs and Markdown through Chromium. It converts office documents in more than 100 formats through LibreOffice.

Can it produce PDF/A files?

Yes. You can add a remediate stage with a profile such as PDF/A-2b in the same conversion request.

Can I still use version 8?

Yes. The gotenberg/gotenberg:8 image remains available, and an upgrade guide maps its routes to version 9.

Similar tools in PDF tools

Stirling-PDF

PDF tools

Self-hosted PDF toolkit with 50+ tools, desktop app and API for teams

97k 9.4k today Thriving Apache-2.0

Replaces Adobe Acrobat

Sioyek

PDF tools

Keyboard-driven PDF viewer for textbooks and research papers

10k 403 20 days ago Slowing GPL-3.0

PDF Arranger

PDF tools

Small GTK app for merging, splitting, rotating and reordering PDF pages on Linux

6.1k 333 10 days ago Active GPL-3.0

Replaces Adobe Acrobat

Zathura

PDF tools

Keyboard-driven, customizable document viewer for Linux

3.4k 242 today Active Zlib

SnapOtter

PDF tools

Self-hosted toolkit for PDF, image, video and audio files with a web UI and REST API

3k 190 yesterday Active AGPL-3.0

Replaces iLovePDF