Free tool

Free Open Graph image generator

Make a 1200 × 630 share image for any page, and see it as X, Facebook and LinkedIn will. Drawn in your browser: no sign-up, no watermark, nothing uploaded.

  • 100% free
  • No sign-up
  • No watermark
  • Your files stay on your device
  • Open-source designs
Design

White, a large headline, and a band of your color.

Text

Leave a field empty to leave it out of the image.

Pictures
Photo
Sample photo
Logo shown in place of the site name
None
Color
The Open Graph image, as you've made it
Loading the image engine…
1200 × 630 px

How the link looks when it's shared

From

The previews take the headline as the page's title. Each network uses its own fonts, and changes its design from time to time.

Open source

Make one for every post, in your own code

Each design is a Hyper Elements template: a React component with typed fields that checks the headline fits before it draws. Copy it into your project, and draw an image for every page on your own server, free.

og/clean.tsx
/**
 * Clean: an Open Graph image for an article, 1200 × 630. White, with the headline as large as it fits, your logo
 * or site name above it, the author and the date under it, and a band of your color along the bottom.
 *
 * A Hyper Elements template: https://hyperelements.dev/tools/open-graph-image-generator
 */
import { Canvas, Circle, Column, Heading, Image, Layer, Rect, Row, Svg, Text, prop } from "@hyper-elements/react";
import { field, fitInside, template } from "@hyper-elements/react/template";

const FONTS = "https://hyperelements.dev/tools/og-image/fonts";
const [INK, MUTED] = ["#0f172a", "#475569"];

export default template({
  id: "og.Clean",
  version: "1.0.0",
  label: "Clean",
  description: "White, a large headline, and a band of your color.",
  root: "Canvas",
  fields: {
    headline: prop.text({ label: "Headline", required: true, maxLength: 140 }),
    site: prop.text({ label: "Site name", maxLength: 40 }),
    author: prop.text({ label: "Author", maxLength: 40 }),
    date: prop.text({ label: "Date", maxLength: 32 }),
    logo: field.image({ label: "Logo", fit: "contain" }),
    accent: prop.color({ label: "Color", default: "#4f46e5" }),
  },
  // Nothing past the image, a font for every character, and a headline that fits.
  rules: { require: { core: ["image/overflow", "image/glyph", "image/fit"] } },
  example: {
    headline: "How we cut our image pipeline from forty seconds to four hundred milliseconds",
    site: "Fieldnotes",
    author: "Maya Okafor",
    date: "Nov 18, 2026",
  },
  render(v) {
    const byline = [v.author, v.date].filter(Boolean).join("  ·  ");
    return (
      <Canvas
        width={1200}
        height={630}
        title={v.headline}
        fonts={[
          { family: "Inter", src: `${FONTS}/Inter-400.ttf`, weight: 400 },
          { family: "Inter", src: `${FONTS}/Inter-600.ttf`, weight: 600 },
          { family: "Inter", src: `${FONTS}/Inter-800.ttf`, weight: 800 },
        ]}
        style={{ backgroundColor: "#ffffff", color: INK, fontFamily: "Inter" }}
      >
        <Layer style={{ height: 630 }}>
          <Svg width={1200} height={630}>
            {/* A grid of dots in the corner, and the band along the bottom. */}
            {Array.from({ length: 30 }, (_, i) => (
              <Circle key={i} cx={1000 + (i % 6) * 26} cy={72 + Math.floor(i / 6) * 26} r={4} style={{ fill: v.accent, opacity: 0.35 }} />
            ))}
            <Rect x={0} y={612} width={1200} height={18} style={{ fill: v.accent }} />
          </Svg>
          <Column style={{ height: 630, padding: [64, 72, 82], justifyContent: "space-between" }}>
            <Row style={{ height: 56, alignItems: "center" }}>
              {v.logo ? (
                <Image field="logo" src={v.logo} alt={v.site ?? ""} style={fitInside(v.logo, { width: 260, height: 56 })} />
              ) : v.site ? (
                <Text field="site" style={{ fontSize: 28, fontWeight: 600, color: v.accent }}>{v.site}</Text>
              ) : null}
            </Row>
            <Heading field="headline" level={1} fit={{ sizes: { max: 80, min: 40, step: 4 }, maxLines: 4 }} style={{ maxWidth: 960, fontWeight: 800, lineHeight: 1.08, letterSpacing: -1.5 }}>
              {v.headline}
            </Heading>
            <Row style={{ height: 36, alignItems: "center" }}>
              {byline ? <Text style={{ fontSize: 26, color: MUTED }}>{byline}</Text> : null}
            </Row>
          </Column>
        </Layer>
      </Canvas>
    );
  },
});

How it works

Each design is drawn on your device at exactly 1200 × 630 pixels, by the same engine Hyper Elements runs on a server: @hyper-elements/react/image. Your headline, photo and logo never leave the page. The PNG and JPG files are made in your browser too.

The headline is measured with its font before anything is drawn. It's drawn at the largest size whose lines fit the design, so a short headline is large and a long one steps down. When it can't fit at the smallest size, the tool tells you how much to cut, rather than cutting it off.

What is an Open Graph image?

An Open Graph image is the picture a link shows when someone shares it: in a post on X, Facebook or LinkedIn, and in Slack, Discord, iMessage and WhatsApp. A page names it in its og:image meta tag. A link with an image and a clear headline takes up more of the feed than a bare URL, and gets more clicks.

Blogs, newsletters, docs and changelogs usually give each page its own image, with the page's title, the site's name or logo, and often the author and the date.

How to make an Open Graph image

  1. Pick a design. Six designs, each 1200 × 630. Your text and pictures carry over when you switch.
  2. Type your headline. It's drawn at the largest size that fits, and steps down as it gets longer. Leave any other field empty to leave it out.
  3. Add a photo and a logo. Pick files from your device. They're read in your browser and never uploaded.
  4. Check the previews. See the image as X, Facebook and LinkedIn show a link, and the square X crops it to for a small card.
  5. Download it. A PNG for flat designs, a JPG for photos. Put it on your site and name its full URL in og:image.

Then check the link with each network's own tool: Facebook's Sharing Debugger and LinkedIn's Post Inspector read the page again and show what they'll use.

Open Graph image size and meta tags

Use 1200 × 630 pixels (1.91 : 1). The large previews on X, Facebook and LinkedIn are that shape, and a smaller image can be shown as a small thumbnail instead. Keep the file under 5 MB: JPG for photos, PNG for flat colors and text.

X's small card crops the middle square of the image. Keep what matters away from the left and right edges: turn on Show X's square crop above to see it.

Meta tagValue
og:imageThe image's full URL, starting with https://
og:image:width1200
og:image:height630
og:image:altWhat the image shows, for screen readers
og:titleThe page's title, which the networks show with the image
twitter:cardsummary_large_image, for X's large card

The networks read only a full URL: https://example.com/og/post.png, not /og/post.png. They also keep a copy of each preview, so give a changed image a new file name.

Questions

Is this Open Graph image generator free?

Yes. There's no account, no watermark and no limit on how many images you make. The designs are open source under the MIT license, so you can also use them in your own code.

Do you upload my photo or logo?

No. The image is drawn in your browser by Hyper Elements, the same engine you can run on a server. Your headline, photo and logo stay on your device, and the PNG and JPG files are made there too. Nothing you type or pick is sent anywhere.

What size should an Open Graph image be?

1200 × 630 pixels, a ratio of 1.91 to 1. X, Facebook, LinkedIn, Slack and most other apps show an image that size as a large preview. Every design here is exactly that size.

Which meta tags does a page need?

og:image with the image's full URL (starting with https://), og:image:width and og:image:height (1200 and 630), og:image:alt with a short description, og:title, and twitter:card set to summary_large_image so X shows the large card. X reads og:image when there's no twitter:image.

PNG or JPG?

JPG for a design with a photo: the file is much smaller. PNG for flat colors and text, where it stays sharp and small. Both work everywhere.

What happens when my headline is long?

Each design draws the headline at the largest size that fits its lines, and steps down as it gets longer. If it can't fit even at the smallest size, the tool says how many characters to cut, instead of cutting it off.

Why does my link still show the old image?

Networks keep a copy of each link's preview. Publish the new image under a new file name and update og:image, then ask the network to read the page again: Facebook's Sharing Debugger, LinkedIn's Post Inspector, or post the link again on X.

Can I make an image for every post automatically?

Yes. Each design is a Hyper Elements template: a React component with typed fields. Copy it into your project, then draw one image per post in a Next.js opengraph-image route, a build script, or with the hyper-elements command. It's free and runs on your own server.

Can I change a design or use my own fonts?

Yes, in the code. A design is plain JSX: change its layout, colors or fonts, and the template still checks that the headline fits and that every character has a font before it draws.

More free tools