← Back to all 12 guides
2026-09-18 · 5 min read

The Complete OpenGraph (OG) Image Size Guide for X, Slack & LinkedIn

Why 1200×630 pixels is still the universal social card ratio, safe typography margins, and how to generate cards without Figma.

Quick reference specifications

Universal canvas
1200×630 px (1.91:1 landscape ratio)
Safe text frame
960×480 px centered (survives square & mobile crops)
Target file size
Under 300 KB (hard timeout risk above 2–5 MB on chat apps)
Supported formats
PNG (flat UI/text) or JPG (photos); never SVG

01How every major platform crops your 1200×630 card

Link preview crawlers do not all display the same aspect ratio, yet 1200×630 pixels (1.91:1) remains the single master dimension that degrades gracefully everywhere. Anything narrower than 600 pixels causes X (Twitter) and LinkedIn to downgrade your link from a large banner card to a tiny square thumbnail, cutting visual real estate by more than half.

The tricky part is not the outer canvas; it is how messaging apps trim the edges. WhatsApp and Telegram often crop previews tighter in chat bubbles, while X crops slightly differently on mobile versus desktop.

Platform preview dimensions & practical limits
PlatformPreferred ratioDisplay behaviorCommon failure cause
X / Twitter1.91:1 (summary_large_image)Full-width card; slight top/bottom trim on mobileMissing twitter:card meta tag or image < 300×157 px
LinkedIn1.91:1 (1200×627)Large feed card with title bar underneathHeavy caching (7 days) or missing og:image:width
Slack1.91:1 (unfurled)Compact preview block; skips oversized filesRelative URL (/og.png) instead of full https:// URL
Discord1.91:1Full embed banner inside chatServer blocks Discordbot User-Agent or slow TTFB
WhatsApp / iMessage1.91:1 or 1:1 cropTight bubble preview; often crops outer 10–15%File > 300 KB (WhatsApp drops preview silently)

02Copy-paste OpenGraph and Twitter Card meta tags

Always write absolute HTTPS URLs for og:image and twitter:image. Relative paths like /og-card.png work fine in browser <img> tags, but Slack, WhatsApp, and older scrapers frequently fail to resolve them. Declaring og:image:width and og:image:height upfront also tells crawlers the layout on the very first share instead of waiting for a second fetch.

Complete social card <head> tags
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Your Brand" />
<meta property="og:url" content="https://example.com/your-page" />
<meta property="og:title" content="Clear Page Title Under 60 Characters" />
<meta property="og:description" content="One specific sentence explaining why the link is worth opening." />
<meta property="og:image" content="https://example.com/og-card-v1.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Plain description of the card visual" />

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Clear Page Title Under 60 Characters" />
<meta name="twitter:description" content="One specific sentence explaining why the link is worth opening." />
<meta name="twitter:image" content="https://example.com/og-card-v1.png" />

03Designing cards people can actually read on a phone

On a phone screen, your 1200 px card gets scaled down to roughly 340 CSS pixels wide. That is nearly a 4× shrink. Anything set below 28 px on the 1200 px artboard turns into unreadable gray fuzz, and pasting a dense full-page dashboard screenshot rarely communicates what the link is about.

  1. Keep headlines to 5 to 9 words at 56–72 px bold display weight so they read in one glance.
  2. Pin all text, badges, and logos inside a centered 960×480 safe frame so square WhatsApp crops never slice off letters.
  3. Export flat typographic cards as quantized PNG (under 150 KB) and photo-heavy cards as 82% JPG (under 250 KB) using OG Image Generator.
  4. Skip repeating your full URL in tiny footer text; every platform already renders your domain directly below the card.

04Busting stale social caches after an update

Overwriting /og-card.png at the exact same URL is the fastest way to spend an afternoon wondering why your old design still shows up in Slack and LinkedIn. Social platforms cache card assets by URL for days.

Rename the file whenever you change the graphic (for example /og-card-v2.png) or append a version query string (?v=2) inside your meta tags. Then run the URL through LinkedIn Post Inspector or OpenGraph preview testers to force a fresh scrape before publishing.

Common questions

Can I use SVG or AVIF for og:image?
No. X, LinkedIn, Facebook, Slack, WhatsApp, and iMessage all ignore SVG og:image files, and AVIF support among link scrapers is still spotty. Stick to PNG for crisp text graphics or standard JPG for photographs.
Why does my card appear blank on the very first share, then work on the second share?
When og:image:width and og:image:height are omitted, some scrapers fetch the HTML first and queue the image download asynchronously, so the first share misses the preview. Including explicit 1200 and 630 dimensions fixes first-share rendering.
Do I need separate Twitter and OpenGraph tags?
Most platforms fall back to og:title, og:description, and og:image, but X still requires <meta name="twitter:card" content="summary_large_image" /> to display a large banner instead of a small square box.
Does Cloudflare Bot Fight Mode or robots.txt break link previews?
Yes, frequently. If your firewall challenges non-browser User-Agents or robots.txt disallows your image path, Slackbot, Twitterbot, and LinkedInBot receive a 403/HTML challenge page instead of your PNG.

Open the browser-local tools mentioned in this guide