Image generation templates

25 pre-built designs. Send JSON, get back a PNG, no design work needed.

A template is a named, parameterised image design hosted by html2img. POST a JSON payload to its endpoint, get a PNG back, and the visual design lives on our side so your code only ships data. Each template is tested for a specific shape and resolves at known dimensions.

Use a template when you want a tested image fast. Use the raw HTML endpoint when you need full design control or your data does not fit any template. Many teams mix the two: templates for the 80 percent case, raw HTML for the rest.

Each template render costs 1 credit, the same as a raw HTML render. See /pricing for the credit ladder. Need a custom template that fits your data shape? Email the team through /contact with the design and the fields you want exposed.

Business

Templates for invoices, receipts, tickets and product cards. Designed for transactional emails, dashboards and admin exports.

Content

Templates for editorial content. Quote cards, blog hero images, podcast covers, podcast episode cards and email headers.

Developer

Templates aimed at engineers and dev tools. Code screenshots, GitHub social previews and project launch announcements.

Real estate

Templates for property listings, MLS exports and agent branding.

Social

Templates sized to platform specs. Open Graph, Twitter, LinkedIn, Facebook, Instagram square, Instagram story, Pinterest, YouTube and tweet mockup.

Browse by use case

Selling something online

  • Product Card - E-commerce product cards with price, optional sale price, and CTA
  • Invoice Image - Render full invoices as PNG images for emails, dashboards, and exports
  • Receipt Image - Compact order receipts for confirmation emails and thank-you screens
  • Coupon Voucher - Promotional voucher images sized for email body and SMS preview

Running a content business

  • Blog Featured Hero - Editorial hero images for blog posts and article pages
  • Open Graph Image - Generate dynamic Open Graph images from JSON
  • Podcast Cover - Square cover artwork sized for Apple Podcasts, Spotify, and the major directories
  • Quote Card - Pull-quote cards for testimonials, reviews, and shareable quotes

Building developer tools

Promoting an event

  • Event Ticket - Print- and email-ready tickets with QR/barcode slot and perforated stub
  • Instagram Story - Vertical 9:16 covers for Instagram and TikTok stories
  • Twitter/X Post Image - Generate share-ready images sized for Twitter/X posts
  • Email Header - Wide email banner artwork sized for newsletter and transactional templates

Templates FAQ

Try a template in two minutes

Sign up for a free account, pick a template, send your first JSON payload. 25 free renders every month.