OG Image Generator — Create 1200×630 Social Images

Create a polished link-preview image for Facebook, LinkedIn, X, Slack and WhatsApp in seconds — pick a template, type your title, add a logo, then download the PNG and matching meta tags.

Runs in your browser
Logo (PNG/SVG)
Background photo
1200 × 630 px (1.91:1)
Meta tags for your page
Paste into <head>

  

Your data never leaves your computer. All processing happens 100% locally in your browser.

How to use the OG Image Generator

  1. Choose a template — Gradient, Split, Minimal, Spotlight or Card. Each sets matching colours you can change.
  2. Type your title and subtitle. The title font size shrinks automatically and wraps so it always fits.
  3. Add your brand name, an emoji, a logo, or a background photo (with adjustable darkening for legible text).
  4. Download the PNG (or a smaller JPEG for photos) and upload it to your site.
  5. Enter the page and image URLs and copy the generated og: and twitter: meta tags into your page’s <head>.

What is an OG image?

An OG (Open Graph) image is the picture shown when a link is shared on Facebook, LinkedIn, X, Slack, Discord, WhatsApp, iMessage and many other apps. It is declared with the og:image meta tag from the Open Graph protocol, originally created by Facebook and now read by almost every platform that renders link previews. X additionally reads twitter:card — set to summary_large_image it displays the image full-width. A clear, branded preview makes a shared link stand out in a busy feed and tells people what they’ll get before they click.

The right size: 1200 × 630

1200×630 pixels (an aspect ratio of 1.91:1) is the size Facebook recommends and it displays sharply across platforms. X’s large summary card uses a 2:1 frame, so a few pixels at the top and bottom may be cropped — this generator keeps text well inside a safe margin. Keep the file under 5 MB (X’s limit; Facebook allows 8 MB); a PNG from this tool is typically a few hundred KB, and JPEG is smaller for photo backgrounds.

Meta tags you need

<meta property="og:title" content="How to Compress Images">
<meta property="og:description" content="A practical guide…">
<meta property="og:image" content="https://example.com/og/compress.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta name="twitter:card" content="summary_large_image">

The og:image URL must be absolute (including https://) and publicly reachable — not behind a login, blocked by robots.txt or served from localhost. Declaring width and height lets Facebook render the preview on the very first share instead of waiting for the image to be fetched. Create the rest of your head tags with the Meta Tag Generator and verify the live result with the Open Graph Checker.

Design tips for link previews

  • Short, large text. Previews are often shown at around 500 px wide or smaller on phones. Aim for a title of 4–10 words; the auto-fit warns you when it has to truncate.
  • Don’t repeat the URL bar. Platforms already show your domain and page title under the image, so use the image for the hook, not the full headline plus description.
  • High contrast. Use the darkening slider on photos so white text stays readable, and test against both light and dark app themes.
  • One image per page. Unique OG images for important pages — blog posts, product pages, docs — get noticeably more attention than a single site-wide logo.
  • Refreshing the cache. Platforms cache previews. After changing an image, re-scrape the URL in Facebook’s Sharing Debugger or LinkedIn’s Post Inspector, or give the file a new name.

In Webflow, set the image per page under Page settings → Open Graph settings, or bind it to an image field for CMS collection pages.

Tools that pair well with the OG Image Generator

  • SERP Preview — Write a title tag and meta description and see exactly where Google is likely to cut them off — measured in pixels, not just characters, on desktop and mobile.
  • Image Resizer — Resize a photo to exact pixel dimensions or a percentage, crop it to fill a social-media size, or fit it inside a frame with a background colour — all locally in your browser.
  • Image Compressor — Shrink photos and graphics by 50–90% without visible quality loss.
  • Image to Base64 — Turn a PNG, JPEG, SVG, WebP or GIF into a Base64 data URI with copy-ready CSS and HTML — or paste a Base64 string to preview and download the image.

Frequently asked questions

What size should an Open Graph image be?
1200×630 pixels (1.91:1). It is the size recommended by Facebook and renders well on LinkedIn, X’s summary_large_image card, Slack, Discord and messaging apps.
Should I use PNG or JPEG for my OG image?
PNG keeps text and flat colours crisp and is the safe default. If you use a photo background, JPEG is usually much smaller with no visible difference — both are supported by every platform.
Why does Facebook or LinkedIn still show my old image?
They cache link previews. Paste the URL into Facebook’s Sharing Debugger or LinkedIn’s Post Inspector to force a re-scrape, or upload the new image under a different file name.
Do I need separate Twitter (X) tags?
X falls back to Open Graph tags for title, description and image, but it needs twitter:card set to summary_large_image to show the large image. The snippet includes both sets to be safe.
Are my images and text uploaded?
No. The image is drawn on an HTML canvas in your browser and the download is created locally; your logo and photos never leave your device.

Related tools