OG Image Generator

A stateless, URL-driven endpoint that renders 1200×630 Open Graph images on demand. Drop the URL into your <meta property="og:image"> tag and the server handles rendering, caching, and delivery — no build step, no asset pipeline. Tune the title, author, avatar, and site label, then pick one of five presets.

← Back to Tools

Theme
Preview
AI instructions — paste into Claude / Cursor / ChatGPT
URL template — replace the highlighted tokens
https://anhtu.dev/tool/og-image-generate?title=YOUR_TITLE&author=AUTHOR_NAME&avatar=IMAGE_URL&websiteUrl=WEBSITE_URL&theme=THEME_NAME
  • YOUR_TITLE — required, URL-encoded string, up to 200 chars
  • AUTHOR_NAME — optional, up to 80 chars
  • IMAGE_URL — optional, absolute https URL to an image (≤ 2 MB)
  • WEBSITE_URL — optional, shown top-left (host only, uppercased)
  • THEME_NAME — one of Dark, Light, Gradient, Minimal, Hero
Meta tag (for <head>)
HTML <img>
Markdown