← Back to Blog

LinkedIn Open Graph Image: Complete Guide to LinkedIn Preview Images

LinkedIn is the most important platform for B2B content. A well-crafted OG image can dramatically increase engagement on shared links. Here's everything you need to know about LinkedIn preview images in 2026.

LinkedIn OG Image Requirements

LinkedIn uses the Open Graph protocol to generate link previews when someone shares a URL in a post, message, or article. The platform reads your og:image meta tag and displays it as a large preview card above the link title and description.

  • Recommended size: 1200 x 627 px
  • Minimum size: 200 x 200 px (but results in a tiny preview)
  • Aspect ratio: 1.91:1
  • Max file size: 5 MB
  • Supported formats: PNG, JPEG
  • URL requirement: Must be an absolute HTTPS URL

While LinkedIn technically accepts images as small as 200x200, images below 1200px wide will render as small thumbnails instead of the prominent large card format. Always aim for 1200x627 or 1200x630 — both work perfectly.

Required Meta Tags for LinkedIn

LinkedIn reads standard Open Graph tags. At a minimum, include these in your page's <head>:

<meta property="og:title" content="Your Page Title" />
<meta property="og:description" content="A compelling description" />
<meta property="og:image" content="https://example.com/og-image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:url" content="https://example.com/page" />
<meta property="og:type" content="article" />

Including og:image:width and og:image:height helps LinkedIn render the preview faster without having to download and inspect the image first.

Using LinkedIn Post Inspector to Debug

LinkedIn provides a free debugging tool called the Post Inspector at linkedin.com/post-inspector. This tool lets you:

  • Preview your link card — see exactly how LinkedIn will display your URL before sharing it.
  • Force a cache refresh — LinkedIn aggressively caches OG data. The Post Inspector forces a re-scrape so your updated image appears immediately.
  • Diagnose missing tags — it shows which Open Graph tags were found and flags any issues.
  • Check image rendering — verify your image isn't being cropped or downscaled unexpectedly.

Always run your URL through the Post Inspector after making changes to your OG tags. LinkedIn can cache old data for up to 7 days, so using the inspector is the only way to force an immediate update.

LinkedIn-Specific Tips

  • Avoid text-heavy images: LinkedIn users scroll quickly. Use bold, readable text with high contrast — no more than 6-8 words on the image.
  • Include your brand: Add a subtle logo or brand color to the image. LinkedIn users are brand-conscious and it builds recognition.
  • No GIFs: Unlike Twitter and Discord, LinkedIn does not support animated GIFs as OG images. Stick to PNG or JPEG.
  • Safe zone for text: Keep important text within the center 80% of the image. LinkedIn may crop edges slightly depending on the feed layout.
  • Dark backgrounds perform well: LinkedIn's feed has a light background, so dark OG images create strong contrast and stand out.

Generating LinkedIn OG Images with OGPix

OGPix generates images at 1200x630 by default — the exact dimensions LinkedIn needs for a large preview card. Every image is automatically optimized as a PNG under the file size limit.

const ogUrl = new URL("https://ogpix-pi.vercel.app/api/og");
ogUrl.searchParams.set("title", "Your LinkedIn Post Title");
ogUrl.searchParams.set("description", "A short, compelling description");
ogUrl.searchParams.set("theme", "dark");
ogUrl.searchParams.set("key", process.env.OGPIX_KEY!);

// Use the URL in your meta tags
// <meta property="og:image" content={ogUrl.toString()} />

Since OGPix serves images via a CDN, LinkedIn's scraper gets a fast response every time — no cold starts, no timeouts, no broken previews.

Common LinkedIn OG Image Problems

  • Image not updating: LinkedIn caches aggressively. Use the Post Inspector to force a re-scrape after changes.
  • Small thumbnail instead of large card: Your image is likely below 1200px wide. Use 1200x630 for the large format.
  • Image cropped incorrectly: You're using a non-1.91:1 aspect ratio. Avoid square or tall images.
  • No image showing at all: Check that your og:image URL is an absolute HTTPS URL and returns a valid image (not a redirect chain or 403).

Perfect LinkedIn previews in seconds

Design your OG image in the playground, copy the URL, and paste it into LinkedIn Post Inspector to verify. It's that simple.

Open Playground →