ShotFast

Social image sizes for X, LinkedIn and Open Graph

The image sizes that work for link previews and posts on X and LinkedIn, the Open Graph tags behind them, safe zones for cropping, and how to test before you share.

4 min read Social

A link shared without a preview image gets scrolled past. A link with a blurry, badly cropped image is almost worse. Getting social images right is mostly about three things: the right ratio, a safe zone that survives cropping, and text that is readable at thumbnail size.

This guide covers the sizes that are commonly recommended for X, LinkedIn and Open Graph link previews. Platforms change their layouts without notice, so treat these as solid defaults and check each platform’s current documentation before a launch.

The sizes at a glance

WhereRecommended sizeRatio
Open Graph link preview (most platforms)1200 × 6301.91:1
X link card (large image)around 1200 × 6002:1
X in-feed image post1600 × 90016:9
LinkedIn link preview1200 × 6271.91:1
LinkedIn feed image1200 × 627 or 1200 × 12001.91:1 or 1:1

If you only make one image, make it 1200 × 630. It is the Open Graph default, LinkedIn uses almost exactly the same ratio, and X crops it only slightly for its large card.

There are two different things people call “social images”:

  • Link previews are generated from meta tags on your page. When someone pastes your URL, the platform fetches the page, reads the Open Graph or X card tags and shows the image you specified. You control them by editing your HTML.
  • Image posts are images you upload directly. You control them completely, including the ratio, and the platform shows them larger.

For a product launch you usually need both: a good preview for every link people share, and a few native image posts that carry the announcement.

Open Graph tags

Open Graph is the de-facto standard most platforms read. A minimal, complete setup looks like this:

<meta property="og:type" content="website" />
<meta property="og:title" content="Your page title" />
<meta property="og:description" content="One sentence about the page." />
<meta property="og:url" content="https://example.com/page" />
<meta property="og:image" content="https://example.com/og/page.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="What the image shows" />
<meta name="twitter:card" content="summary_large_image" />

Details that matter:

  • Use an absolute URL for og:image. Relative paths are ignored by most crawlers.
  • Declare width and height. Some platforms render the preview faster when they do not have to download the image first to measure it.
  • twitter:card set to summary_large_image asks X for the large image layout. Without it you may get a small square thumbnail. X falls back to the Open Graph title, description and image if you do not set separate twitter: tags.
  • Keep the file small. A PNG or JPEG under 1 MB is fetched reliably. Huge images can time out.
  • One image per page. A unique preview per article or product page outperforms a single site-wide image.

Safe zones: design for the crop

Every platform crops a little differently, and the same platform crops differently on mobile and desktop. The fix is a safe zone:

  • Keep the headline and key visual inside the central 80 % of the width and height.
  • Leave the outer edges for background only: colour, gradient, a pattern.
  • Do not put text in the bottom-left corner. Some layouts overlay the domain name or a play button there.
  • If you reuse a 1200 × 630 image as a 1:1 LinkedIn post, the sides are cut. Design the square version separately, or keep everything important in the middle 630 × 630.

A device mockup or browser frame centred on a solid background survives cropping well, because the background can lose a few pixels without anyone noticing. Browser mockups for landing pages covers framing choices in more detail.

Text that survives the thumbnail

In a feed, a 1200 × 630 image is often displayed around 500 px wide, sometimes less. Text that looked fine in your design tool becomes unreadable.

Rules of thumb:

  • Headline at least 48 px at 1200 × 630, ideally 60 to 80 px.
  • No more than about eight words. The post text carries the detail.
  • High contrast. Light text on a dark background, or the reverse. Avoid text over busy screenshots.
  • Check at real size. Zoom your preview to roughly 40 % and read it. If you squint, it is too small.

Image posts: go bigger

For native posts on X, 1600 × 900 gives a crisp 16:9 image on high-density screens. On LinkedIn, a 1200 × 1200 square takes up more of the feed than a wide image, which tends to help on mobile.

For both, export at 2× if your editor supports it and let the platform downscale. A slightly oversized image looks sharper than one scaled up.

Test before you share

Most platforms cache link previews aggressively. If you share a URL with a broken image, fixing the image later may not update the preview for hours or days.

Before announcing anything:

  1. Check the page source and confirm the og:image URL loads in a private browser window.
  2. Use the platforms’ own preview or debugging tools (LinkedIn offers a post inspector, for example) to fetch the page fresh and see the preview they will show.
  3. Share the link in a private message to yourself to see the real rendering on mobile.
  4. If a cached preview is wrong, re-run the platform’s inspector to refresh it, or add a query string to the URL as a last resort.

Making the images

The fastest route is a template: one layout with your background colour, a screenshot in a frame, and a short headline. In our editor, the Open Graph preset starts at 1200 × 630 with a browser frame and text enabled. There are also presets for X posts at 1600 × 900 and LinkedIn at 1200 × 627. Drop a screenshot in, write the headline, and export. For launch-day assets on Product Hunt, see the gallery image guide.