Skip to content

Alternatives

HTML/CSS to Image alternatives

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 . 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

OptionTypeBest forCost
GotenbergOpen source (MIT), self-hostedThe same HTML to image job on your own server, behind an API.Free software. You pay for your server.
Playwright or PuppeteerOpen source libraries (Apache-2.0)Full control of the browser in your own code.Free software. You pay for your server.
Satori and @vercel/ogOpen source library (MPL-2.0)Simple OG cards inside a JavaScript app, with no browser.Free software. It runs in your own app.
SnapsbrewOpen source (AGPL-3.0), self-hostedTemplates 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. 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, Gotenberg on GitHub.

  2. 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, Puppeteer screenshot docs.

  3. 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, Vercel OG image docs.

  4. 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, Snapsbrew on GitHub, DigitalOcean droplet prices.

    Read the Snapsbrew docs

How to choose

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

Run it on your own server

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

Terminal

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