Make a 1200 × 630 share image
By Chris Hornak · Steps last checked · Part of the Swift Site Audit support pages
The short answer
Make your share image 1200 × 630 pixels. That is the size Meta asks for, and it is close to the 1.91 : 1 shape Facebook and LinkedIn show without cropping. Keep the file under 5 MB, the most LinkedIn allows, and save it as a JPG or PNG. Then point your og:image tag at it and ask Facebook and LinkedIn to read the page again.
The share image, also called the OG image, is the picture that shows when someone pastes your link into LinkedIn, Facebook, Messages or Slack. Your page names it in an og:image tag. OG stands for Open Graph, the set of tags these apps read.
Each app has its own rules. 1200 × 630 meets all of them:
| App | What it asks for |
|---|---|
| --- | --- |
| Facebook (Meta) | At least 1200 × 630, close to 1.91 : 1, at least 200 × 200, under 8 MB |
| At least 1200 × 627, 1.91 : 1, under 5 MB. Under 401 pixels wide shows as a small thumbnail | |
| Apple Messages | At least 900 pixels wide. Avoid text in the image |
Shopify suggests 1200 × 628 and Yoast's beginner guide suggests 1200 × 675. Both pass.
From our audit data: 28 of our 93 test homepages state their share image size in their tags. 17 of those 28 are too small or the wrong shape for a 1200 × 630 card, such as 1200 × 800 or a square.
What the audit found
The audit reads the page you tested. Find the line your report shows, then jump to its fix.
- Your share image is too smallLink preview · Image size · smaller than 1200 × 630
- Your share image is the wrong shapeLink preview · Image shape · not close to 1.91 : 1
- Your share image is under 900 pixels wideLink preview · Image width · under 900 px
- Your share image file is too bigLink preview · File size · over 5 MB
Your share image is too small
Your report says: Link preview · Image size · smaller than 1200 × 630
Your image is smaller than 1200 × 630. Meta says images under 600 × 315 still show, but much smaller. LinkedIn shows images under 401 pixels wide as a small thumbnail beside the title. Under 200 × 200, Facebook won't use the image at all.
example.com
Healthcare IT Staffing | Example Staffing Co.
example.com
Healthcare IT Staffing | Example Staffing Co.
Fix: make a new image at 1200 × 630 and point your og:image tag at it. Start from a bigger original. Stretching a small image makes it blurry.
Your share image is the wrong shape
Your report says: Link preview · Image shape · not close to 1.91 : 1
Facebook and LinkedIn show the image in a wide frame, about twice as wide as it is tall (1.91 : 1). A square or tall image gets cropped to fit, so the top and bottom are cut off. A logo or headline near the edge can be lost. This often happens when a product photo or a logo is used as the share image.
example.com
Healthcare IT Staffing | Example Staffing Co.
example.com
Healthcare IT Staffing | Example Staffing Co.
Fix: make an image that is 1200 × 630, with the important part in the middle, and set it as the share image.
Your share image is under 900 pixels wide
Your report says: Link preview · Image width · under 900 px
Apple asks for share images at least 900 pixels wide for link previews in Messages. Apple says images under 150 pixels wide may be ignored or shown as an icon.
share.png
800 × 420 pixelsshare.jpg
1200 × 630 pixelsFix: use an image at least 900 pixels wide. A 1200 × 630 image meets this rule and the others.
Your share image file is too big
Your report says: Link preview · File size · over 5 MB
LinkedIn takes share images up to 5 MB and Meta up to 8 MB. A bigger file may not show at all. Big files usually come straight from a camera or a design tool at full size.
share.png
4000 × 2100 pixels · 6.4 MBshare.jpg
1200 × 630 pixels · 210 KBFix: save the image at 1200 × 630 as a JPG, or as a compressed PNG. A file that size is usually well under 1 MB.
Make the change on your platform
Plain code shows first. Pick your platform and we remember it on every support page.
Plain code
Plain HTML
Put these tags in the page's <head>. Use the full address of the image, with https://:
<meta property="og:image" content="https://example.com/share.jpg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="Example Staffing Co. logo over a hospital help desk">
<meta name="twitter:card" content="summary_large_image">
Meta says the width and height tags help the image show the first time a link is shared. Make sure they match the real file.
Next.js
Put a file named opengraph-image.jpg (or .png) in the app folder, or in a page's folder. Next.js writes the og:image, width and height tags for you. Put the alt text in opengraph-image.alt.txt. To draw the image in code, use opengraph-image.tsx with ImageResponse, which makes a 1200 × 630 image unless you set another size.
Source: The Open Graph protocol · Meta for Developers: Images in link shares · Next.js: opengraph-image and twitter-image · Next.js: ImageResponse
WordPress
Yoast SEO
One page
- Edit the page. In the Yoast SEO box, open Social media appearance (older versions call it the Social tab).
- Choose the image and update the page.
A default for every page
Go to Yoast SEO › Settings › General › Site basics and set the site image. Yoast uses it when a page has no image of its own.
In Yoast SEO › Settings › Site features, check that Open Graph data is on. If it is off, Yoast writes no og:image tag.
Source: Yoast: Social media optimization with Yoast SEO · Yoast: Why doesn't Facebook display an image? · Yoast: Configuration guide for Yoast SEO
Rank Math
One page
- Edit the page. In the Rank Math box, open the Social tab.
- Under Facebook, click Add Image (or Replace Image) and choose a 1200 × 630 image. Rank Math uses it for X too, unless you turn off Use Data from Facebook Tab.
A default for every page
- Go to Rank Math SEO › Titles & Meta › Global Meta.
- At OpenGraph Thumbnail, click Add or Upload File, choose the image, click Use this file and save.
Source: Rank Math: Social tab in the meta box · Rank Math: Titles & Meta settings
No SEO plugin
Good to know: WordPress itself has no share image setting. The og:image tag comes from your theme or a plugin. The simplest fix is an SEO plugin such as Yoast SEO or Rank Math, then the steps on its tab.
Source: Yoast: Social media optimization with Yoast SEO · Rank Math: Social tab in the meta box
Squarespace
One page
- In the Pages panel, hover the page title and click the gear icon.
- Open the Social tab, click Upload an Image and click Save.
You can only do this on a computer, not in the app. Blog posts, products and events have the same Social tab in their item settings.
A default for the whole site
Open the Social Sharing panel, click + to upload the image, and click Save.
Squarespace's own rule is only "200px × 200px or larger", so make it 1200 × 630 yourself.
Shopify
Good to know: a product, collection or blog post shares its own featured image. Other pages use the store's social sharing image. Shopify suggests 1200 × 628.
The store's image
- Go to Online Store › Preferences.
- In Social sharing image and SEO, click Add image, or click the image and choose Change image.
- Click Save.
A product or blog post
Its featured image is the share image. A square product photo gets cropped in a wide card. Your theme or an app can set a different one.
Webflow
Good to know: Webflow has no site-wide share image. Set one on each page.
- In the Pages panel, open Page settings and find Open Graph settings.
- Under the Open Graph image, click Select image, choose a JPG or PNG from your assets and click Add image. Or click Add URL and paste the image's address.
- Click Save, then publish.
On a Collection page, choose an Image field from the Open Graph image dropdown. Webflow says all Open Graph images in a Collection must share the same size.
Source: Webflow Help: Control the look of social shares with Open Graph
Framer
- Open the page's Page Settings and go to Page images › Social preview.
- Upload a 1200 × 630 image. On a CMS page, choose CMS Variables and pick your image field.
- Publish.
Set the default for the whole site in Site Settings. Framer suggests keeping the important content in the middle.
Source: Framer Help: Update page titles, descriptions and social images
HubSpot
Blog posts and pages
- In the editor, click Settings at the top right, then Featured image.
- Turn on Enabled featured image, upload or choose the image, and fill in Image alt text.
- Click Publish or Update.
Set it by hand
In the page's Settings, add this to the Head HTML field:
<meta property="og:image" content="https://example.com/share.jpg">
Source: HubSpot: Use a featured image on a page or blog post · HubSpot: Include an Open Graph meta tag on your images
Payload or Sanity
Payload
Good to know: with Payload's SEO plugin, each page has a meta image field. Upload a 1200 × 630 image there. Your site's code then writes it into the og:image tag. If the tag is missing or the size is wrong, ask your developer (see the Code tab).
Source: Payload: SEO plugin
Sanity
Good to know: Sanity has no share image setting of its own. Your site's code writes the og:image tag, often from an image field in Sanity. See the Code tab, or ask your developer.
Check it worked
- Open your share image's address in your browser. Check that it loads and is 1200 × 630.
- Run the Swift Site Audit again. The link preview checks should pass.
- Facebook keeps a copy of your old preview. Open Meta's Sharing Debugger, paste your page's address and run it, then ask it to scrape the page again. Meta saves images by their address, so give a new image a new file name.
- LinkedIn: open Post Inspector, paste the address and inspect it. LinkedIn says posts you shared before keep the old preview.
Common mistakes
- Replacing the file under the same name. Facebook keeps the old image for that address. Upload the new image with a new name.
- Important text near the edges. If the shape is off, the edges get cropped. Keep logos and words near the middle.
- Width and height tags that don't match the file. Change the tags when you change the image.
- A WebP image. Meta lists only JPG, GIF and PNG for og:image. Use a JPG or PNG to be safe.
- An image behind a login or blocked in robots.txt. LinkedIn says it can't pull an image from a protected folder.
- One image for the home page only. Every page you share needs one, or the app picks one for you.
Fix it yourself, or have us do it
Related
- How to audit your website like a buyer would: what buyers see when your link is shared
- Write a page description Google shows: the text that often shows under your title
Sources
Official documentation only. Each link was opened and read on December 5, 2026.


