The right og:image size for Facebook, X, LinkedIn and WhatsApp

The right og:image size for Facebook, X, LinkedIn and WhatsApp

The best OG image size is 1200 × 630 pixels (a 1.91:1 shape), saved as a JPG or PNG and compressed to under about 300 KB. That one image shows as a large card on Facebook, LinkedIn, X and WhatsApp. Each network has its own minimums and file size limits, listed below, but if you make a single 1200 × 630 image and keep it light, you meet all of them.

OG image size per network

These figures come from each platform's own documentation where one exists. Where a number is unofficial, the table says so.

Network Recommended Smallest for a big card Shape Max file size
Facebook 1200 × 630 px or larger 600 × 315 px (under 200 × 200 is ignored) as close to 1.91:1 as possible 8 MB
LinkedIn 1200 × 627 px 1200 × 627 px is LinkedIn's stated minimum; under 401 px wide shows as a thumbnail 1.91:1 5 MB
X (large card) 1200 × 630 works; X shows about 2:1 300 × 157 px 2:1 5 MB
X (small card) square 144 × 144 px 1:1 5 MB
WhatsApp 1200 × 630 px at least 300 px wide up to 4:1 600 KB per Meta's docs; under about 300 KB is more reliable (unofficial)

A few notes on the table:

  • Facebook says images smaller than 600 × 315 still appear, but "much smaller". Its recommended 1200 × 630 is for sharp display on high-resolution screens.
  • LinkedIn's help page calls 1200 × 627 a minimum for its sharing module. A 1200 × 630 image meets that.
  • X uses the large card only when the page sets twitter:card to summary_large_image. X's card documentation gives a 2:1 shape, a 300 × 157 minimum, a 4096 × 4096 maximum and a 5 MB limit. A 1.91:1 image is trimmed by a few pixels at the top and bottom.
  • WhatsApp has no image guide for ordinary users. Meta's developer documentation for WhatsApp link previews asks for an image under 600 KB and at least 300 px wide. Many site owners find that files over about 300 KB sometimes show no picture, so treat 300 KB as the practical limit. See why WhatsApp link previews show no image.

Why 1200 × 630 is the safe choice

  • It meets Facebook's recommendation and LinkedIn's minimum.
  • Its 1.91:1 shape is what Facebook and LinkedIn display, so nothing is cropped there.
  • It is large enough for X's big card and for high-resolution phone screens.
  • At that size, a well-compressed JPG is usually 100–300 KB, which WhatsApp handles fine.

Making one image per network is rarely worth the work. One 1200 × 630 image, with the important part kept away from the edges, covers them all.

Keep the important part in the middle

Apps crop in different ways. X trims a little from the top and bottom, some chat apps show a smaller or squarer thumbnail, and phone layouts can cut the edges. Keep your headline text and logo inside the central area and leave some empty space around the edges. Avoid small text: on a phone, the card is only a few centimetres wide.

The tags to use

Put these in your page's <head>. The width and height tags are optional, but Facebook recommends them: the crawler has to see an image before it can show it, so without them the first share of a new page may appear without a picture.

<meta property="og:image" content="https://example.com/images/my-page-1200x630.jpg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="Short description of the image">
<meta name="twitter:card" content="summary_large_image">

X reads og:image when there is no twitter:image, so you don't need a second image tag. Our post on Open Graph vs Twitter Card tags explains which X tags you actually need.

Always use the full https:// address of the image. Relative paths like /images/cover.jpg are not reliable on every app.

How to make and check your OG image

  1. Start with a wide image. If your picture is square or tall, crop it to 1.91:1 with our Crop Image tool.
  2. Resize it to 1200 × 630 px with our Resize Image tool.
  3. Compress it with our Image Compressor. Aim for under 300 KB; a JPG at about 80% quality is usually plenty.
  4. Upload it under a new file name if it replaces an older image. Facebook caches images by address and won't update a picture whose URL hasn't changed.
  5. Add the tags shown above.
  6. Check the result. Enter the page address in our Open Graph Preview. It downloads your image, shows its real pixel size and file size, and flags problems: under 200 × 200 px (Facebook ignores it), under 600 × 315 px (small thumbnail instead of a big card), a shape far from 1.91:1, over 300 KB (WhatsApp may skip it), over X's 5 MB or Facebook's 8 MB limit, or an SVG file. It also shows the card for Facebook, X, WhatsApp, LinkedIn, Slack and Discord side by side.
  7. Refresh the caches. If the link was shared before, use the Facebook Sharing Debugger and LinkedIn Post Inspector to read the page again. Our guide to refreshing an old Facebook preview walks through it.

Quick checklist

  • 1200 × 630 px, JPG or PNG
  • Under about 300 KB (and never over 5 MB)
  • Important text and logo in the centre
  • Full https:// image address
  • og:image:width and og:image:height set
  • twitter:card set to summary_large_image
  • New file name whenever you replace the image

If your image is the right size but the wrong picture still appears, see why Facebook shows the wrong image.

Frequently asked questions

Is 1200 × 630 or 1200 × 627 better?

Either works. LinkedIn's help page lists 1200 × 627, Facebook recommends at least 1200 × 630. The 3-pixel difference is invisible, so one 1200 × 630 image covers every app.

Can I use a square image as og:image?

You can, but Facebook, LinkedIn and X's large card crop it to a wide shape, so the top and bottom get cut. Use a 1.91:1 image for the big card.

What file format should the og:image be?

JPG or PNG. They work on every major app. SVG doesn't show as a link preview, and other formats are not supported everywhere.

How big can the file be?

Facebook allows 8 MB, LinkedIn and X 5 MB, and Meta's WhatsApp docs say under 600 KB. Aim for under about 300 KB so every app shows it.

Tools in this guide

#open graph#og:image#social media#image size