# OG image generator

> Pick a template, watch the card update, then download the PNG or copy the Next.js file.

Design an Open Graph image in the browser. Choose from 18 templates, set the fields that template uses, download a PNG, or copy a Next.js opengraph-image.tsx file.

- Page: https://benchline.fabwaseem.com/t/og-image-generator
- Runs: in the browser. Input stays on the device.
- Price: free, no account
- Input: Template, the fields that template uses, colors, size, and optional images.
- Output: A PNG, meta tags, and an opengraph-image.tsx file.
- Keywords: Open Graph, og:image, OG image generator, twitter card, 1200x630
- Updated: 2026-10-18
- Built by: Waseem Anjum (https://fabwaseem.com)

## How to use it

1. **Pick a template.** Search the live thumbnails or filter by Blog, Product, Dev, Social, or Event. The selected card gets an orange ring.
2. **Tune the card.** The form shows only the fields that template uses. Set colors from the swatches or a preset, and drop a logo if the template has an image slot.
3. **Download or copy.** Download the PNG at 1200×630, 1600×900, or 1080 square, or copy the Next.js file and meta tags.

## Use it from an AI agent

MCP tool name: `build_open_graph`
MCP endpoint: https://benchline.fabwaseem.com/mcp (Streamable HTTP, no key)
HTTP: POST https://benchline.fabwaseem.com/api/v1/tools/og-image-generator with the input as the JSON body
This call does not fetch anything. It runs on the arguments you send.

Render one of the Open Graph templates as a PNG and a Next.js opengraph-image.tsx file. Pass a template id from list_og_templates, the fields that template uses, colors, a size, and optional base64 images.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "template": {
      "default": "editorial",
      "description": "Template id from list_og_templates.",
      "type": "string",
      "enum": [
        "editorial",
        "aurora",
        "blueprint",
        "terminal",
        "split",
        "brutalist",
        "launch",
        "profile",
        "stat",
        "quote",
        "event",
        "podcast",
        "changelog",
        "glass",
        "minimal-mono",
        "product",
        "tutorial",
        "before-after"
      ]
    },
    "size": {
      "default": "1200x630",
      "type": "string",
      "enum": [
        "1200x630",
        "1600x900",
        "1080x1080"
      ]
    },
    "title": {
      "type": "string"
    },
    "subtitle": {
      "type": "string"
    },
    "author": {
      "type": "string"
    },
    "role": {
      "type": "string"
    },
    "eyebrow": {
      "type": "string"
    },
    "badge": {
      "type": "string"
    },
    "date": {
      "type": "string"
    },
    "time": {
      "type": "string"
    },
    "price": {
      "type": "string"
    },
    "cta": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "stat": {
      "type": "string"
    },
    "statLabel": {
      "type": "string"
    },
    "quote": {
      "type": "string"
    },
    "episode": {
      "type": "string"
    },
    "readTime": {
      "type": "string"
    },
    "meta": {
      "type": "string"
    },
    "command": {
      "type": "string"
    },
    "steps": {
      "description": "One step per line.",
      "type": "string"
    },
    "versions": {
      "description": "One version per line, as v2.3 | Note.",
      "type": "string"
    },
    "beforeValue": {
      "type": "string"
    },
    "afterValue": {
      "type": "string"
    },
    "caption": {
      "type": "string"
    },
    "brand": {
      "description": "Brand name shown on templates that have a brand row.",
      "type": "string"
    },
    "colors": {
      "type": "object",
      "properties": {
        "background": {
          "type": "string"
        },
        "foreground": {
          "type": "string"
        },
        "accent": {
          "type": "string"
        },
        "muted": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "logo": {
      "description": "Logo image as base64, a data URI, or a public URL. Private addresses are refused. 10 MB cap.",
      "type": "string"
    },
    "avatar": {
      "description": "Portrait image as base64, a data URI, or a public URL.",
      "type": "string"
    },
    "hero": {
      "description": "Hero image as base64, a data URI, or a public URL.",
      "type": "string"
    },
    "before": {
      "description": "Before image as base64, a data URI, or a public URL.",
      "type": "string"
    },
    "after": {
      "description": "After image as base64, a data URI, or a public URL.",
      "type": "string"
    },
    "imageUrl": {
      "description": "Public URL written into og:image. This does not fetch the file.",
      "type": "string"
    }
  },
  "required": [
    "template",
    "size"
  ],
  "additionalProperties": false
}
```

### Example tools/call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "build_open_graph",
    "arguments": {
      "template": "editorial",
      "size": "1200x630"
    }
  }
}
```

Setup for Claude, Cursor, and VS Code: https://benchline.fabwaseem.com/mcp/guide

## Questions

### What size does this generator export?

The default is 1200 by 630, the large-card size Facebook, LinkedIn, Slack, Discord, and WhatsApp expect. You can also export 1600 by 900 for X, or a 1080 square.

### Is the OG image generator free?

Yes. It runs in the browser. There is no account and no watermark on the PNG.

### Are the images stored?

No. The PNG is drawn on this page and downloaded to your machine. Nothing is uploaded.

### Can I use my own logo?

Yes. Drop a PNG, JPEG, WebP, or GIF. The file stays in the browser. A remote URL is drawn only when the host allows canvas access.

### How do I use this in a Next.js app?

Copy the opengraph-image.tsx file into the App Router segment that should own the preview. Next.js serves that file as the page's og:image.

### How do I check that a platform picked up the image?

Deploy the page, then paste its URL into the Facebook Sharing Debugger and the LinkedIn Post Inspector. Those caches ignore a normal reload until you ask them to scrape again.

## Related tools

- [OG template list](https://benchline.fabwaseem.com/t/og-template-list): Browse Open Graph template ids, fields, and color presets.
- [Meta tags inspector](https://benchline.fabwaseem.com/t/meta-tags-inspector): Read title, description, canonical, robots, Open Graph, Twitter, and JSON-LD types from one public URL.
- [llms.txt generator](https://benchline.fabwaseem.com/t/llms-txt-generator): Read a public sitemap and write an llms.txt index, plus an optional llms-full.txt.
- [AI SEO checker](https://benchline.fabwaseem.com/t/ai-seo-checker): Score crawler access, llms.txt, structured data, and the on-page signals AI search uses.
