Generate customer-ready PDFs and images without owning the render stack
SnapHTML renders raw HTML, URLs, or saved templates in a real browser and returns the finished PDF, PNG, WebP, or JPG as a binary response. Ship invoices, receipts, reports, previews, and share images without running your own rendering workers.
await fetch("https://api.snhtml.com/v1/render", {
method: "POST",
headers: {
"authorization": "Bearer snhtml_...",
"content-type": "application/json"
},
body: JSON.stringify({
html: "<main><h1>Invoice #1842</h1></main>",
format: "png",
width: 1024,
height: 900,
fullPage: false,
fileName: "invoice-1842"
})
});Built for app-generated files
Send the document once. Control the browser and output in the same request.
Use the page source you already have
Post existing markup and styles or send a URL. No duplicate PDF layout, no separate document builder, no rendering worker to maintain.
Return the format your workflow needs
Generate PDFs for documents and PNG, WebP, or JPG images for previews, invoices, cards, social images, and visual exports from the same API.
Control every render
Set viewport size, image quality, full-page capture, media mode, timing, scale, and file names per request.
Keep rendering out of your codebase
Send JSON from your server and get bytes back. No SDK, browser automation, queue tuning, or Playwright cleanup.
Add file generation without adding a rendering stack.
Use SnapHTML from billing systems, CRMs, email pipelines, dashboards, and background jobs. Your app owns the data, page, or markup; SnapHTML handles the browser render and returns a file.
Create an API key in the dashboard.
Send raw HTML, a URL, or a saved template with render settings.
Store, stream, or attach the returned PDF, PNG, WebP, or JPG.
Documentation
Every endpoint, option, and error in one place.
Authentication, both render routes, the full request body reference, saved templates, plan limits, and what to do when a render comes back wrong.
Pricing
Start free. Upgrade when generated files become part of your product.
Free
Test real files before you pay.
- 100 renders / month
- No credit card required
- PDF and image output
- Direct binary response
Builder
For products that generate customer files every day.
- 2,000 renders / month
- PDF and image output
- Direct binary response
Pro
For growing render volume and background jobs.
- 10,000 renders / month
- PDF and image output
- Direct binary response
Max
For high-volume document and image generation.
- 50,000 renders / month
- PDF and image output
- Direct binary response
Get started
Stop maintaining render workers. Ship the file.
Create a free account, generate an API key, and test a real PDF, PNG, WebP, or JPG from raw HTML, a URL, or a saved template in the dashboard sandbox.
Try for free