Open Graph image size: how to make link previews look right everywhere
1200 × 630 pixels is the size to use for og:image, but there's more to a good link preview: file size, safe zones, the right meta tags, and clearing stale caches.

You share a link to your new blog post on LinkedIn and the preview shows... your logo, stretched. Or the top of someone's head. Or nothing at all, just a grey box and a URL.
That preview image comes from the Open Graph tags in your page's HTML, mostly og:image. We just went through this ourselves when we added share cards to every page on TinyRes, so here's everything I'd want to know if I were doing it for the first time.
The size: 1200 × 630
If you want one number, it's 1200 × 630 pixels. That's an aspect ratio of about 1.91:1, and it's what Facebook recommends. LinkedIn suggests 1200 × 627, which is close enough that the same image works.
X (Twitter) large cards use a 2:1 ratio, so a 1200 × 630 image gets trimmed slightly at the top and bottom there. That's fine as long as nothing important sits right at the edges.
Some things to avoid:
- Images smaller than 600 × 315. Facebook may fall back to a small thumbnail next to the text instead of the big preview.
- Square or portrait images. They'll be cropped hard, usually from the middle, and you don't control what's left.
- Huge files. Platforms have upload limits (around 5 MB for X and LinkedIn, 8 MB for Facebook), but the real problem is smaller than that. Messaging apps are fussier: WhatsApp is widely reported to skip preview images over roughly 300 KB. Aim to keep your share image under 300 KB and it'll show up everywhere.
Keep the important bit in the middle
Different apps crop the same image in different ways. X trims the top and bottom, some chat apps show a small square thumbnail, and on a phone the whole thing is tiny anyway.
So design with a safe zone:
- Put the headline, face or product in the centre.
- Leave a margin of around 60–90 pixels on all sides.
- Use big, bold text if you use text at all. Your preview will often be shown around 300 pixels wide on a phone. Small text turns into grey fuzz.
Use JPEG or PNG
Facebook and X both accept WebP these days, but not every app or crawler that reads Open Graph tags does. Link previews get generated by all sorts of things: chat apps, Slack, Discord, email clients, search tools. For share images, the boring formats are the safe ones.
- JPEG for photos and most designed cards. Quality 80–85 keeps it well under 300 KB.
- PNG for flat graphics with sharp text, if the file stays small.
The meta tags you need
Here's a complete set. Put it in the <head> of each page:
<meta property="og:title" content="Open Graph image size: a practical guide" />
<meta property="og:description" content="How to make link previews look right everywhere." />
<meta property="og:url" content="https://example.com/blog/og-image-size" />
<meta property="og:image" content="https://example.com/og/og-image-size.jpg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="A link preview card showing the 1200 by 630 safe zone" />
<meta name="twitter:card" content="summary_large_image" />
A few things that trip people up:
- The image URL must be absolute, starting with
https://. A relative path like/og/image.jpgwon't work. - Include width and height. Without them, some platforms have to download the image before they can show the preview, and the first share comes out without one.
twitter:cardset tosummary_large_imageis what gets you the big image on X instead of a small square.- The image has to be public. If it's behind a login or blocked by robots.txt, the platforms can't fetch it.
Why your old preview won't go away
You fixed your image, shared the link again, and the old one still shows up. That's because platforms cache previews, sometimes for days or weeks.
- Facebook: Paste your URL into the Sharing Debugger and click Scrape Again.
- LinkedIn: Paste it into the Post Inspector. That refreshes the cached version.
- X: There's no preview tool anymore. The easiest way to check is to start writing a post with the link and look at the preview before you publish.
- Anywhere else: Change the image file name, or add a version to the URL (like
og.jpg?v=2), so it looks like a new image.
Making a 1200 × 630 image from any photo
If you already have a good photo or a designed graphic, you just need to get it to the right size and weight.
In TinyRes, drop the image in and pick the Social card 1200×630 preset. It crops to exactly 1200 × 630 and saves as JPEG at quality 85. The crop is a smart crop: it looks for faces and the main subject and keeps them in frame, instead of slicing straight through the middle of the picture. Check the file size in the result; if you need it smaller, lower the quality a bit or set a Target size of 250 KB in the Output tab.
It's free for 20 images a day, with no account and no watermark, and nothing you upload is stored.
A quick checklist
- 1200 × 630 pixels, JPEG or PNG
- Under 300 KB
- Important content in the centre, with a margin
- Absolute
https://URL inog:image, plus width, height and alt twitter:cardset tosummary_large_image- Re-scrape after every change
It's a small detail, but a good preview is the difference between a link people scroll past and one they click. If you're working through the rest of your site's images too, our image size cheat sheet covers heroes, thumbnails, logos and favicons.
zero bytes stored
Shrink your images right now
Convert to AVIF, WebP or MozJPEG, crop around faces, strip EXIF and hit exact KB targets in your browser.