# HTML/CSS to Image alternatives

Source: https://snapsbrew.com/alternatives/htmlcsstoimage

If you send your own HTML and want to host the renderer, Gotenberg is the closest open-source alternative to HTML/CSS to Image. Playwright or Puppeteer give full control. Satori and @vercel/og fit simple cards in a JavaScript app. Snapsbrew fits when a designer owns templates instead of HTML.

Last verified 27 November 2026. Each fact links to the page of the product that shows it. If a fact changed after that date, the page of the product is correct. I maintain Snapsbrew, one of the options, so I have a stake in this list. It is in the place where it fits.

## Why people look for an alternative

- Each image costs money: $69 a month for 10,000 images, and $375 for 100,000.
- Your HTML and data go to the servers of a vendor.
- It runs only on the servers of HTML/CSS to Image.

## What HTML/CSS to Image does well

- It renders your own HTML and CSS with a managed Chrome.
- Video and GIF recordings of HTML and of scrolling pages.
- A free plan with 50 images a month.
- Zapier, Make, n8n and an MCP server.

## At a glance

| Option                                 | Type                                | Best for                                                      | Cost                                                                                                                       |
| -------------------------------------- | ----------------------------------- | ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| [Gotenberg](#gotenberg)                | Open source (MIT), self-hosted      | The same HTML to image job on your own server, behind an API. | Free software. You pay for your server.                                                                                    |
| [Playwright or Puppeteer](#playwright) | Open source libraries (Apache-2.0)  | Full control of the browser in your own code.                 | Free software. You pay for your server.                                                                                    |
| [Satori and @vercel/og](#satori)       | Open source library (MPL-2.0)       | Simple OG cards inside a JavaScript app, with no browser.     | Free software. It runs in your own app.                                                                                    |
| [Snapsbrew](#snapsbrew)                | Open source (AGPL-3.0), self-hosted | Templates from a visual editor, not raw HTML.                 | No fee for each image. You pay for your server, for example $24 a month for a DigitalOcean droplet with 2 vCPUs and 4 GiB. |

## 1. Gotenberg

Open source (MIT), self-hosted. Best for: The same HTML to image job on your own server, behind an API.

Gotenberg is a Docker API that turns HTML, URLs and office files into PDFs. Its screenshot routes turn HTML or a URL into PNG, JPEG or WebP.

### Strong points

- You send your own HTML and CSS, and headless Chromium renders it.
- PDFs and images from the same API.
- Very active, with a release on 26 November 2026.

### Limits

- No templates and no editor. You build the finished HTML for each image.
- You run and scale the container.

Cost: Free software. You pay for your server. Sources: [Gotenberg screenshot docs](https://gotenberg.dev/docs/chromium/screenshot-html), [Gotenberg on GitHub](https://github.com/gotenberg/gotenberg).

## 2. Playwright or Puppeteer

Open source libraries (Apache-2.0). Best for: Full control of the browser in your own code.

Playwright and Puppeteer drive a real browser from your code. A page screenshot gives you an image of any HTML with full CSS.

### Strong points

- Every CSS feature of the browser.
- PNG, JPEG or WebP screenshots.
- Full control of the HTML, the fonts and the timing.

### Limits

- A library, not an API. You build the endpoint, the queue, the browser pool and the cache.
- Chrome needs memory and the fonts on the server.

Cost: Free software. You pay for your server. Sources: [Playwright screenshot docs](https://playwright.dev/docs/api/class-page#page-screenshot), [Puppeteer screenshot docs](https://pptr.dev/api/puppeteer.screenshotoptions).

## 3. Satori and @vercel/og

Open source library (MPL-2.0). Best for: Simple OG cards inside a JavaScript app, with no browser.

Satori turns JSX into SVG with its own layout engine, with no browser. @vercel/og adds Resvg and returns a PNG. Next.js exposes it as ImageResponse.

### Strong points

- No browser, so it starts fast and runs in edge functions.
- No second service to run.

### Limits

- A subset of HTML and CSS. The Vercel docs say flexbox only and a 500KB bundle limit.
- A developer writes the design in JSX. There is no editor.

Cost: Free software. It runs in your own app. Sources: [Satori on GitHub](https://github.com/vercel/satori), [Vercel OG image docs](https://vercel.com/docs/og-image-generation).

## 4. Snapsbrew

Open source (AGPL-3.0), self-hosted. Best for: Templates from a visual editor, not raw HTML.

Snapsbrew is an open-source, self-hosted image generation API. You design templates in its editor and render PNG, JPEG, WebP or PDF on your own server.

### Strong points

- Signed URLs for og:image tags, batches of 100, CSV and XLSX imports and embedded forms.
- An MCP server for Claude, Cursor and other agents.
- The templates, the data and the images stay on your server, and you can read the code.

### Limits

- You install, update and back up the server.
- No video, and no Zapier or Make app.
- One maintainer, and the SDKs install from GitHub.

Cost: No fee for each image. You pay for your server, for example $24 a month for a DigitalOcean droplet with 2 vCPUs and 4 GiB. Sources: [Snapsbrew docs](https://snapsbrew.com/docs/getting-started/introduction), [Snapsbrew on GitHub](https://github.com/amedina068/snapsbrew), [DigitalOcean droplet prices](https://www.digitalocean.com/pricing/droplets).

[Read the Snapsbrew docs](https://snapsbrew.com/docs/getting-started/introduction.md)

## How to choose

1. If you want to keep sending HTML, pick Gotenberg or Playwright.
2. If a designer should change the images without code, pick a template tool such as Snapsbrew.
3. If you need video or GIF recordings, HTML/CSS to Image is still the simplest choice.

## Read more

- [Snapsbrew and HTML/CSS to Image, side by side](https://snapsbrew.com/compare/htmlcsstoimage.md)
- [Dynamic OG images compared](https://snapsbrew.com/blog/dynamic-og-images-compared.md)
- [The best open-source image generation APIs and tools](https://snapsbrew.com/blog/best-open-source-image-generation-api.md)
- [All alternatives pages](https://snapsbrew.com/alternatives.md)

## Run it on your own server

Docker Compose starts the app, the queue, MySQL, Redis and the renderer together.

[Self-host it](https://snapsbrew.com/docs/getting-started/installation-docker.md) [View on GitHub](https://github.com/amedina068/snapsbrew)

```bash
git clone https://github.com/amedina068/snapsbrew.git
cd snapsbrew
cp .env.docker.example .env   # then fill in .env
docker compose up -d --build
```
