FREEFirst project with us? Your landing page design is on the house.See the offer

SEO and AEO

Social share images: size, tags and one per page

The Open Graph tags a link preview needs, the image sizes LinkedIn and Meta state, how to set one per page in Webflow or Astro, and how to refresh old previews.

By Abdul QuadirUpdated 2026-11-137 min read
TL;DR
  • Give every page its own share image, 1200 by 630 pixels, as a JPG or PNG.
  • The Open Graph protocol requires og:title, og:type, og:image and og:url. Add og:description, image width, height and alt text too.
  • In Webflow, set Open Graph settings per page, and pull the image from a Collection Image field on CMS pages.
  • In Astro, write the tags once in the layout and pass the image in from each page.
  • Check each link in Meta's Sharing Debugger and LinkedIn's Post Inspector, and give a changed image a new file URL.

The short answer

Give every page its own share image, sized 1200 by 630 pixels, saved as a JPG or PNG. Set it with the og:image tag, along with og:title, og:description, og:url and og:type. Add og:image:width, og:image:height and og:image:alt too. In Webflow, set it in each page's Open Graph settings, and pull it from an Image field on CMS pages. In Astro, write the tags once in your layout and pass the image in from each page. Then test the link in LinkedIn's Post Inspector and Meta's Sharing Debugger before you share it.

The rest of this post shows where each of those rules comes from.

Why one image per page matters

When someone pastes your link into LinkedIn, Slack or a chat app, the preview card is often the first thing people see of your page. If every page shares the same logo image, a pricing link and a blog post look identical. A page-specific image tells people what they are about to open.

Webflow puts it plainly: if you have not set your Open Graph settings, random content or no content can appear when the page is shared, and Open Graph content works best when it is specific to the page. That is from Webflow's help page on Open Graph.

Our own site makes one share image per page, so a case study shows the client's site and a blog post shows its cover.

The tags a link preview needs

The Open Graph protocol lists four required properties:

  • og:title: the title of the page as it should appear in the card.
  • og:type: for example website or article.
  • og:image: the image URL.
  • og:url: the canonical URL of the page.

LinkedIn's help page on sharing also asks for og:description, so treat that as required too. The protocol adds optional image properties: og:image:width and og:image:height in pixels, og:image:type, og:image:secure_url, and og:image:alt. It says a page that sets og:image should also set og:image:alt, a short description of what the image shows.

Meta gives a good reason to add the width and height. Meta's sharing best practices say they let the crawler render the image right away, instead of downloading and processing it first. Without them, the first share of a page can show up with no image.

Image size: what the platforms actually say

Sizes vary from post to post online. Here is only what the platforms state on their own pages:

SourceWhat it says
LinkedInAt least 1200 by 627 pixels, 1.91:1 ratio, 5 MB max. Images under 401 pixels wide show as a small thumbnail.
MetaAt least 1080 pixels wide for the best display on high resolution screens.
WebflowUse JPG or PNG, and the same dimensions for all Open Graph images on the site.
Open Graph protocolNo size. Width and height are optional tags.

A 1200 by 630 pixel image meets the LinkedIn minimum and the Meta width, and it is the size Webflow uses in its own code example. Keep the important part, such as the headline or logo, away from the edges, since some apps crop the card. Keep the file small enough to load fast, well under LinkedIn's 5 MB cap.

Webflow: set it per page

Webflow lets you set three Open Graph fields on each page: title, description and image. Per Webflow's help page on Open Graph:

  1. Open the Pages panel, then Page settings, then Open Graph settings.
  2. Write a title and description, or tick the boxes to reuse the SEO title and meta description.
  3. Click Select image to pick from your assets, or Add URL to paste a public image link.
  4. Save and publish the site.

Two details catch people out. There is no global Open Graph setting: the tags only apply to the page you set them on, so each page needs its own. And the image picker only shows JPG and PNG files. Webflow says WebP works on many platforms but support varies, so use the URL option if you want WebP, or stick to JPG.

Webflow CMS: one image per item, set once

For blog posts, case studies or any Collection, you do not set images one by one. On the Collection page, open Page settings, then Open Graph settings, and choose an Image field from the Collection, such as the main image or a thumbnail. Every item then uses its own image. Title and description can pull from Collection fields too, with Add field.

Webflow notes that all Open Graph images in a Collection must share the same dimensions, and that you need an Image field in the Collection to set one at all. A simple habit: add a dedicated "Share image" field at 1200 by 630, so the cover art in the post layout can be any shape you like.

To tell crawlers the size, Webflow's page shows a head code snippet for og:image:width and og:image:height. Put it in Site settings if every image is the same size, or in a page's Inside head tag field if sizes differ by page. While you are in page settings, it is worth checking canonical URLs too; our post on canonical tags in the Webflow CMS covers that.

Astro: set the tags once in the layout

In Astro, a layout gives your pages a shared shell, including the <head>, and pages pass values to it as props. That is from Astro's docs on layouts. So write the Open Graph tags once in the layout and pass the title, description and image from each page:

---
const { title, description, image, alt } = Astro.props;
const url = new URL(Astro.url.pathname, Astro.site);
const img = new URL(image, Astro.site);
---
<meta property="og:type" content="website" />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:url" content={url} />
<meta property="og:image" content={img} />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content={alt} />
<meta name="twitter:card" content="summary_large_image" />

Use absolute URLs for the image and page, which is why the example builds them from Astro.site. For Markdown or content pages, Astro passes the frontmatter to the layout, so an image field in each post's frontmatter is enough.

This is how our own site works: one layout writes the tags, and a small script makes a 1200 by 630 JPG for every page that does not have one yet.

Test before you share, and refresh old previews

Platforms cache previews, so a fix on your site does not show up straight away. Use their tools:

  • Meta Sharing Debugger. Paste the link, click Debug, then Scrape Again if the data is old. Meta's sharing best practices say to run a link through it to fetch the data ahead of time, again after each image change, and that it refreshes sooner than the standard 24 hour update. You need to be logged into Facebook.
  • LinkedIn Post Inspector. Paste the link and click Inspect to scrape it again and see where each value came from. LinkedIn says a refresh only changes new posts: existing posts with that URL keep the old preview. You need to be logged in.
  • X. Webflow's help page notes that X's Card Validator no longer shows a preview, so compose a post and paste the link to see the card.

One more rule from Meta's guide for webmasters: images are cached by URL and will not update unless the URL changes. If you replace a share image, upload it as a new file with a new name instead of overwriting the old one.

For a quick check of every tag on a page, run it through our free meta tags tool.

A quick checklist

  • Every page has its own og:image, 1200 by 630, JPG or PNG.
  • og:title, og:description, og:url and og:type are set.
  • og:image:width, og:image:height and og:image:alt are set.
  • Image and page URLs are absolute and load without a login.
  • CMS pages pull the image from a Collection field, all the same size.
  • Each new or changed page is checked in Meta's debugger and LinkedIn's Post Inspector.
  • Changed images get a new file URL.

Share tags sit next to structured data in the head. If you are fixing one, check the other with our schema markup guide.

What to do next

Pick your five most shared pages, usually home, pricing, a top post and two case studies, and paste each into LinkedIn's Post Inspector. Fix what looks wrong, then set up the CMS image field so new posts are covered by default. If you want it set up across the site, see Webflow SEO or Astro and Sanity builds, or send us your site.

Abdul Quadir
Abdul QuadirFounder of Kookies. Builds Webflow and Astro sites for startups and growing teams.

Terms used: Webflow, Open Graph

FAQs

Questions
people ask.

Abdul Quadir
Still have a question?Ask us directly. We reply within a day.
Book a callPick a timehello@kookies.io

LinkedIn's help page asks for at least 1200 by 627 pixels at a 1.91:1 ratio and under 5 MB. Meta recommends images at least 1080 pixels wide. A 1200 by 630 JPG meets both.

The Open Graph protocol lists og:title, og:type, og:image and og:url as required. LinkedIn also asks for og:description. Add og:image:alt whenever you set an image.

No. Webflow's help page says Open Graph tags cannot be set globally and only apply to the page where you set them, so set them on each page.

Open the Collection page's Page settings, then Open Graph settings, and pick an Image field from the Collection. All images in that Collection must share the same dimensions.

Both cache previews. Run the link through LinkedIn's Post Inspector or Meta's Sharing Debugger to scrape it again. Meta caches images by URL, so a changed image needs a new file URL.

Webflow's image picker only shows JPG and PNG files. Webflow says WebP works on many platforms but support varies, so JPG or PNG is the safer choice.

Your turn

Let's kook
what you krave.

Hi Kookies, I need a built on . I'd love to launch . Reach me at
or book a callSent. We reply within one working day.