html2png.dev
Turn raw HTML into production-ready images for free, no sign-up required.

What it does
html2png.dev is a free API that converts raw HTML and CSS into high-resolution images (PNG, JPEG, WebP) or PDFs. It uses a headless Chromium instance on the edge to render markup exactly as a browser would, including Tailwind CSS, Google Fonts, SVG, JavaScript, and CSS animations. The API accepts a simple HTTP POST request with the HTML in the request body and returns a JSON response containing a public URL to the generated asset. Key parameters include width, height, format, deviceScaleFactor (1-4), delay, zoom, selector (to capture a specific element), and omitBackground (for transparent PNGs). The service is designed to be agent-native, meaning LLM agents like Claude and GPT can call it directly without complex JSON escaping or MCP servers.
Who it is for
The service targets developers, content creators, and AI/LLM users who need to programmatically generate images from HTML templates. Use cases include dynamic Open Graph images for blog posts or products, branded invoices and receipts, charts and dashboards for reports, email-ready graphics that render consistently across clients, personalized certificates and tickets at scale, and AI agent output where an LLM can design a visual and request its conversion to an image. The API is language-agnostic, with examples provided in Node.js, Python, PHP, and Go.
Why it matters
Generating images from HTML traditionally requires running a headless browser, managing dependencies, and handling scaling and caching. html2png.dev abstracts this complexity into a single HTTP endpoint, eliminating the need for SDKs, API keys, or local infrastructure. It is free with a rate limit of 200 requests per hour per IP, making it accessible for prototyping, small-scale production, and AI-driven workflows. The service also supports high-DPI rendering (Retina) and transparent backgrounds, which are essential for modern web graphics. By being agent-native, it reduces friction for AI agents that need to produce visual outputs without additional tooling.
Launch signal
The product was launched as a Show HN on Hacker News, indicating a public debut aimed at the developer community. The tagline "Turn raw HTML into production-ready images for free" highlights its core value proposition. The website includes a live HTML editor with preset templates (OG Image, GitHub Header, Terminal Snippet, etc.) and a developer API section with curl examples and parameter documentation. The service is operational and free to use without sign-up.
Brand and naming
The domain html2png.dev is descriptive and functional, clearly communicating the core conversion (HTML to PNG) and the developer-oriented .dev TLD. The name is memorable and easy to type, though it may limit future expansion beyond image formats. The brand positions itself as a utility tool for developers and AI agents, emphasizing simplicity and zero setup. The website design is modern and minimal, with a dark theme and code-focused layout that appeals to its target audience.
Founder
alvinunreal
Related
Get more like this in our weekly newsletter.