The Short Answer
- Size: 1200x630 pixels.
- Aspect ratio: 1.91:1.
- Format: JPG or PNG.
- File size: under 1 MB if you can. The hard limits are 5 MB on X and LinkedIn and 8 MB on Facebook.
- URL: a full
https://address in your og:image tag.
OG Image Size by Platform
| Platform | Recommended | Ratio | Minimum | Max file size |
|---|---|---|---|---|
| 1200x630 | 1.91:1 | 200x200 (600x315 for the large card) | 8 MB | |
| X, summary_large_image | 1200x600 | 2:1 | 300x157 | 5 MB |
| X, summary | 600x600 | 1:1 | 144x144 | 5 MB |
| 1200x627 | 1.91:1 | 401 pixels wide for the large card | 5 MB | |
| 1200x630 | 1.91:1 | None published | Keep it under about 600 KB | |
| Slack | 1200x630 | 1.91:1 | None published | None published |
| Discord | 1200x630 | 1.91:1 | None published | None published |
| iMessage | 1200x630 | 1.91:1 | None published | None published |
WhatsApp doesn't publish a limit, but heavy images are the usual reason a WhatsApp preview shows up without a picture. Compress the file and it tends to come back.
Why 1200x630
Facebook asks for 1200x630 and needs at least 600x315 before it will use the large card. LinkedIn asks for 1200x627, which is three pixels off. X uses 2:1, so it trims about 15 pixels from the top and bottom of a 1200x630 image. One file covers all three.
You'll also see 1200x628 recommended. It's the same image for all practical purposes. Nobody can see a two pixel difference.
Keep Important Stuff Away From the Edges
Some layouts crop your image to a square: X summary cards, small Facebook cards, and a lot of chat apps. If your logo or headline has to survive that, keep it inside the middle 630x630 square. At the very least, leave 40 pixels of padding on every side.
Tell Platforms the Size
Add the width and height next to your image tag. Facebook uses them to show the image on the very first share, before it has finished downloading the file.
<meta property="og:image" content="https://example.com/images/social-card.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="A short description of the image" />Common OG Image Mistakes
- Too small. Under 600x315, Facebook shrinks it to a thumbnail. Under 200x200, it's ignored.
- Wrong shape. A square or tall image gets cropped to 1.91:1 and loses the top and bottom.
- SVG, AVIF or HEIC. Crawlers want JPG or PNG. WEBP works on most platforms but not all of them.
- A relative URL.
/og.pngwon't load. Use the full address. - Tiny text. The card is often shown around 500 pixels wide. Text that looks fine at full size becomes unreadable.
Frequently Asked Questions
What is the best OG image size?
1200x630 pixels, a 1.91:1 aspect ratio. It meets Facebook's and LinkedIn's recommendations and X only trims a few pixels from the top and bottom.
Is it 1200x630, 1200x628 or 1200x627?
All three work. 1200x630 is Facebook's number, 1200x627 is LinkedIn's and 1200x628 shows up in a lot of X guides. The difference is a couple of pixels, so pick 1200x630 and use it everywhere.
What is the minimum OG image size?
Facebook ignores anything under 200x200 pixels and needs 600x315 to show the large card. X needs 300x157 for a large image card. LinkedIn shrinks images 400 pixels wide or narrower to a thumbnail.
What file format should an OG image be?
JPG or PNG. Use JPG for photos and PNG for text and flat graphics. SVG doesn't work on any major platform, and newer formats like AVIF aren't widely supported by crawlers.
Does OG image size affect SEO?
Not rankings directly. It changes how your link looks when people share it, which changes how many of them click.