Image Tools

Open Graph Image Size: The 1200×630 Rule

October 2026 • By Muhammad AbuBakar Azam 8 min read • Zero-Data Privacy Verified

Table of Contents

You publish the post. You share the link. And the preview that appears is... a gray box. Or your logo stretched into unrecognizable taffy. Or a random sidebar ad image the platform grabbed because it couldn't find anything better. Meanwhile your competitor's links unfurl into gorgeous cards with bold imagery and crisp headlines. Same social network, same kind of link — the difference is one image file and about fifteen minutes of work.

That image is the Open Graph image (the `og:image`), and it controls how your link looks everywhere it's shared: X, Facebook, LinkedIn, Discord, Slack, iMessage, WhatsApp. Get it right and every share is a little billboard for your content. Get it wrong and every share advertises that you didn't bother. The 1200×630 rule is the foundation; the safe zones and testing are what make it actually work.

The myth goes: "the platform will just use my featured image" or "it'll pick something sensible." Sometimes it does — by accident. What's actually happening: when a link is shared, the platform's crawler fetches your page, looks for the `og:image` meta tag, and if it finds nothing, it guesses. The guessing algorithm grabs the largest image on the page, or the first one, or gives up and shows nothing. "Largest image on the page" is how your 2000px sidebar ad becomes the face of your article.

Even when you have an og:image, "any image" fails in specific ways. Too small (under 200×200 on some platforms) and it gets rejected or shown as a tiny thumbnail instead of the large card. Wrong shape and it gets center-cropped — usually right through your headline text. No image at all and you get the gray box of sadness. The platforms are not being difficult; they're rendering your image into a fixed card template, and templates are unforgiving.

The fix is to stop leaving it to chance: create a dedicated 1200×630 image for every important page, set it explicitly in the meta tags, and test it. Fifteen minutes per key page. Your homepage, your top posts, your landing pages — the URLs people actually share.

A social media link preview card showing an image, title, and description
A social media link preview card showing an image, title, and description

The 1200×630 rule, and why that exact size

1200×630 pixels is the recommended Open Graph image size, and it's not arbitrary. The 1.91:1 aspect ratio is what Facebook, LinkedIn, and most platforms' "large card" templates are built around. At 1200px wide, the image stays sharp on high-DPI screens when displayed at the typical 500–600px card width (the 2x retina rule again). Under 600px wide and some platforms downgrade you to the small-thumbnail layout — same link, half the visual impact.

The platform specifics, because "1200×630" has footnotes:

File format: JPG for photographic cards (smaller), PNG for text-heavy graphics (sharper text). Keep it under 1 MB generally, under 300 KB if WhatsApp previews matter to you. And use absolute URLs in the tag (`https://yoursite.com/og/home.jpg`, not `/og/home.jpg`) — crawlers resolve relative URLs inconsistently, and a broken image URL means no preview.

Safe zones: keep text away from the edges

Here's the detail that separates decent link previews from professional ones: every platform crops your image slightly differently, and text near the edges dies first. X's card trims a few pixels; some mobile layouts zoom the image; Discord's embed has its own aspect quirks.

The safe-zone rule: keep all text and critical elements inside the central 90% of the image — roughly a 60px margin on all sides of a 1200×630 canvas. Backgrounds, gradients, and decorative elements can bleed to the edges; headlines, logos, and calls-to-action stay inside the zone.

Design guidance for the card itself:

The most common amateur mistake: screenshotting the article header and calling it an og:image. Headers are designed for the page, not the card — wrong ratio, text in the danger zone, tiny type. Design the card deliberately; it's a separate asset.

What each platform actually crops

The 1200×630 master works everywhere, but each platform frames it slightly differently, and knowing the quirks prevents surprises:

Facebook renders the full 1.91:1 faithfully on desktop; on mobile the card is full-width and the image scales proportionally — no crop, just scaling. Your safe zones hold.

X uses the 1200×628 variant of the ratio. The 2px difference from 1200×630 is handled by negligible scaling. The real X quirk: if your image is under ~600px wide or the tags are malformed, it falls back to the small `summary` card — a tiny thumbnail instead of the big image. When a link shows the small card unexpectedly, image size is the first suspect.

LinkedIn follows the OG standard closely at 1200×627-ish rendering. LinkedIn's crawler is slower to refresh its cache than others (up to a week), so test before the big share, not after.

WhatsApp shows a compact preview and enforces the strictest file-size behavior — images over ~300 KB sometimes don't generate previews at all. If WhatsApp previews matter (they do for anything shared in chats), export a lean JPG.

Discord and Slack both unfurl large with the full image. Slack's crawler respects the standard tags; Discord additionally reads the image dimensions from the file itself, so correct actual dimensions (not just the tag claims) matter.

iMessage generates rich previews from og tags on iOS — full-width image, title, domain. It caches aggressively per device; testing on a second device is the only reliable check.

The takeaway: one 1200×630 image, text in the safe zone, under 300 KB if you can manage it, and you survive every platform's framing.

An outlined frame marked 1200 by 630 pixels with safe-zone guides
An outlined frame marked 1200 by 630 pixels with safe-zone guides

Testing with debuggers (before you share, not after)

Every major platform offers a debugger that shows exactly what its crawler sees — and crucially, lets you refresh the cached preview. Testing after sharing is too late; the broken preview is already in people's feeds. The workflow:

1. Build the image and set the tags (`og:image`, `og:title`, `og:description`, plus `twitter:card` set to `summary_large_image`). 2. Run the URL through each debugger: Facebook's Sharing Debugger, X's Card Validator, LinkedIn's Post Inspector. Each shows the preview as the platform will render it and reports tag errors (missing image, unreachable URL, wrong dimensions). 3. Force a re-scrape. All three debuggers have a "scrape again" / refresh function that clears the platform's cache for your URL. This is the fix for "I updated the image but the old one still shows" — the number one og:image support question in existence. 4. Check the image URL directly in a browser first. If the image 404s or loads slowly for you, the crawler fails too. Absolute URL, publicly accessible, no hotlink protection blocking the crawler's user agent.

The OpenGraph & Social Meta Tag Generator produces the full tag set — OG plus Twitter card tags with the correct absolute-URL structure — so the tags themselves are one less thing to get wrong. Paste the tags, run the debuggers, re-scrape, and your previews are deterministic instead of hopeful.

One caching reality to internalize: platform caches persist for days (LinkedIn up to a week). If you share the link before testing, the broken preview gets cached and your fix won't appear for existing shares — only new ones, after a re-scrape. Test first. Always test first.

Building one that survives everywhere

Let's assemble the spec for a card that works on every platform, first time:

Do this for your homepage, your top ten posts, and any landing page you'll share deliberately. That's maybe three hours of work total for a small site, and it permanently upgrades every link you share. The gray box of sadness is optional — and now you know it's a choice.

Try it free — no sign-up

Run the numbers yourself in seconds. Everything happens in your browser.

Open the OpenGraph & Social Meta Tag Generator

Frequently Asked Questions

What is the correct Open Graph image size?

1200×630 pixels (1.91:1 aspect ratio). It's the documented recommendation for Facebook and LinkedIn, works for X's large cards (which nominally want 1200×628), and stays sharp on high-DPI screens. Keep the file under 1 MB — under 300 KB if WhatsApp previews matter.

Why is my link preview showing the wrong image?

Either the `og:image` tag is missing (so the platform guessed — usually the largest image on the page), the tag points to a relative or broken URL (use absolute URLs), or the platform is showing a cached old preview (use the debugger's re-scrape function to refresh it).

How do I test my Open Graph image before sharing?

Use the platform debuggers: Facebook Sharing Debugger, X Card Validator, and LinkedIn Post Inspector. They show the exact preview and let you force a re-scrape to clear cached versions. Always test before sharing — caches persist for days.

What's the difference between og:image and Twitter card images?

`og:image` is the Open Graph standard every platform reads; Twitter's `twitter:image` and `twitter:card` tags control X's specific rendering. Set `twitter:card` to `summary_large_image` for the big preview, and you can reuse the same 1200×630 image for both.

Where should text go on an Open Graph image?

Inside the central safe zone — keep all text and logos within ~60px margins on a 1200×630 canvas. Platforms crop edges slightly differently, and text near the borders gets cut. One headline under 60 characters, high contrast, readable at 300px wide.

Is it safe to generate OG images and tags with an online tool?

The tags are just HTML — no risk at all. For the image itself, a browser-local generator keeps your brand assets on your machine rather than uploading them. Either way, the output is a standard image file and meta tags you paste into your page.