ScreenshotNeo

BlogHow-to

How to Choose the Right Dimensions for a LinkedIn Link Preview Image

Use a 1200 × 627 pixel image for a standard LinkedIn link preview. Learn the Open Graph setup, display rules, and fixes for previews that will not load.

By the ScreenshotNeo team4 October 20266 min read

For a standard organic LinkedIn link preview, use an image that is 1200 × 627 pixels, with an aspect ratio of 1.91:1. LinkedIn lists those dimensions as the minimum for website sharing and describes the preview frame with the same size. The website-sharing module also has a 5 MB maximum image-file size. See LinkedIn Help’s guidance on making your website shareable and sharing articles or links.

This is the organic link-preview size, not a universal LinkedIn image size. LinkedIn’s separate single-image ad guidance recommends 1200 × 628 pixels for landscape ad creative. Use the ad dimensions only when making an ad, not as a replacement for the organic preview specification.

1. Choose the canvas size

Use case Image dimensions Notes
Standard organic link preview 1200 × 627 px 1.91:1 ratio; LinkedIn’s stated minimum for website sharing.
LinkedIn single-image landscape ad 1200 × 628 px recommended Separate paid-ad specification; do not treat it as the organic link-preview requirement.

Start with a 1200 × 627 canvas. Keep the main subject and any essential visual details inside the image bounds. LinkedIn’s published organic-preview guidance does not specify a separate safe area, so there is no official inset measurement to apply.

For a LinkedIn Page post with a custom image, the image must be more than 200 pixels wide to appear in the larger format. Images below that width display as a small thumbnail on the left. This is a Page-post display rule; it does not replace the 1200 × 627 website-sharing recommendation. LinkedIn also says Page-post preview images are not cropped on mobile; other ratios appear in full with subtle white padding. These details are scoped to the documented Page-post feature. See Customize the image and title of a LinkedIn Page post preview.

2. Expose Open Graph metadata

LinkedIn reads information from your page to build a link preview. Add the expected Open Graph fields to the HTML source of the page being shared: og:title, og:image, og:description, and og:url. Set og:image to the public image URL. LinkedIn’s developer guidance describes Open Graph Protocol and its image requirements in Make your website shareable on LinkedIn.

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Example article title</title>
  <meta property="og:title" content="Example article title">
  <meta property="og:description" content="A concise description of the article.">
  <meta property="og:url" content="https://example.com/article">
  <meta property="og:image" content="https://example.com/images/link-preview.jpg">
</head>
<body>
  <article>Article content</article>
</body>
</html>

Replace the example values with the actual canonical page URL, a title and description for that page, and an image URL that LinkedIn can retrieve. The tags need to be in the page source LinkedIn fetches. If your site renders metadata only in the browser after JavaScript runs, check the returned HTML source and your site’s server-side metadata configuration.

3. Check the image and preview before publishing

  1. Export the preview image at 1200 × 627 pixels and keep it at or below 5 MB for the documented website-sharing module.
  2. Set the four Open Graph fields in the shared page’s source. Check that the image URL points to the intended asset.
  3. Make sure the image URL is publicly retrievable. A protected directory, authentication requirement, or site rule that blocks LinkedIn can prevent image retrieval even when the file itself has the right dimensions.
  4. Paste the page URL into LinkedIn’s post composer and inspect the generated preview. Allow a few seconds for the preview to appear, as LinkedIn advises.
  5. If you are posting as a LinkedIn Page, an administrator can use the composer’s edit controls to select a custom image and edit the title.

LinkedIn says a link can still be posted when no preview image is available. If the preview is missing, diagnose retrieval and metadata before changing the image ratio.

4. Common problems and fixes

Symptom Likely cause What to check
Preview image is missing LinkedIn cannot retrieve the image, or the page does not expose usable Open Graph metadata. Check og:image in the returned page source and verify the image URL is public and not behind a protected directory or access rule.
Wrong image appears The page’s og:image points to another asset, or LinkedIn is showing information it previously retrieved. Inspect the current source and image URL, then paste the link into the composer again to inspect the generated preview.
Small thumbnail appears For a LinkedIn Page post custom image, the image may be 200 pixels wide or narrower. Use an image wider than 200 pixels; for a standard website link preview, use the recommended 1200 × 627 canvas.
Image is rejected or unavailable The asset may exceed the documented 5 MB maximum or be inaccessible to LinkedIn. Reduce the file below 5 MB and confirm that the URL can be retrieved without login or directory protection.
Preview has padding or looks different on mobile The image uses a ratio other than the documented Page-post preview ratio. Use 1200 × 627 for the standard preview. LinkedIn says other ratios in the documented Page-post feature appear in full with subtle white padding rather than being cropped.
Correct image dimensions, but still no preview Dimensions alone do not guarantee retrieval; the site may block LinkedIn or the file may be protected. Check public accessibility and page source. LinkedIn notes that a link can still be shared without an image preview.

5. Capture the preview for review

A screenshot can help you document how a public page or preview looks during a content review. ScreenshotNeo is a website screenshot API and MCP server from ScreenshotNeo. Its API can return an image or PDF from one GET request. The call below captures a page; it does not replace checking LinkedIn’s own composer, which is where to inspect LinkedIn’s generated link preview.

cURL

curl -G "https://api.screenshotneo.com/v1/shot" \
  -d access_key=YOUR_API_KEY \
  --data-urlencode url=https://example.com/article \
  -o page.webp

Python

import requests

r = requests.get(
    "https://api.screenshotneo.com/v1/shot",
    params={"access_key": "YOUR_API_KEY", "url": "https://example.com/article"},
    timeout=90,
)
r.raise_for_status()
open("page.webp", "wb").write(r.content)

Node.js

const q = new URLSearchParams({
  access_key: 'YOUR_API_KEY',
  url: 'https://example.com/article'
});
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
if (!res.ok) throw new Error(`Screenshot request failed: ${res.status}`);
await Bun.write('page.webp', new Uint8Array(await res.arrayBuffer()));

For the full parameter reference and API details, see the ScreenshotNeo documentation.

Or skip the browser setup

Cookie banners, popups and chat widgets are removed before the shot. Bot checks, blank pages and failed loads are never billed; the response headers identify the page verdict and billing status. An MCP server lets AI agents use screenshot tools. The free plan includes 1,000 screenshots per month with no card, and paid plans start at $5 for 3,000.

curl -G "https://api.screenshotneo.com/v1/shot" \
  -d access_key=YOUR_API_KEY \
  --data-urlencode url=https://example.com/article \
  -o shot.webp

Sign up for 1,000 free screenshots a month, with no card required.

6. Performance, reliability and cost notes

  • Image size: Keep the image within LinkedIn’s 5 MB website-sharing limit. The dossier provides no additional compression target, so prioritize the specified dimensions and an image that remains clear at preview size.
  • Retrieval: Public accessibility matters. Correct dimensions cannot help if LinkedIn cannot fetch the page metadata or image.
  • Preview timing: Give the composer a few seconds to generate the preview. Recheck the source and accessibility if it remains absent.
  • Screenshot review: A screenshot service can capture a page for review, but the LinkedIn composer remains the relevant place to confirm LinkedIn’s generated preview. ScreenshotNeo bills only clean shots; bot checks/CAPTCHAs, blank pages, timeouts, failed loads and cache hits cost nothing. Its plans are Free (1,000/month), Starter ($5 for 3,000), Growth ($15 for 15,000), Pro ($39 for 60,000), Scale ($99 for 250,000), and Business ($249 for 1,000,000). Yearly billing gives two months free, and every feature is on every plan.

7. FAQ

Should I use 1200 × 627 or 1200 × 628?

Use 1200 × 627 for a standard organic link preview. The 1200 × 628 figure is LinkedIn’s recommended landscape size for single-image ads.

Does the image need to be exactly 1200 × 627?

LinkedIn identifies 1200 × 627 as the minimum dimensions for its website-sharing module and describes the preview frame at that size. Use that canvas to match the standard ratio and minimum.

Does LinkedIn crop the preview on mobile?

LinkedIn says Page-post preview images are not cropped on mobile; other ratios are displayed in full with subtle white padding. That statement applies to the documented Page-post feature.

Can I post a link without a preview image?

Yes. LinkedIn’s general sharing instructions say a link can still be posted when no preview image is available.

Sources