All topics

The Definitive OG Image Size Guide for Every Platform

Getting OG image dimensions wrong is one of those small mistakes that makes your site look unprofessional every time someone shares a link. The tricky part is that different platforms have slightly different ideal sizes, so you need a strategy that covers all of them without creating a dozen image variants.

The Universal Safe Size: 1200x630 Pixels

If you only create one OG image size, make it 1200x630 pixels. This is the dimension recommended by Facebook and it works well across nearly every platform that renders Open Graph previews. The 1.91:1 aspect ratio gives you a wide, landscape-oriented canvas that displays nicely in feeds without getting cropped awkwardly. Most social platforms will scale this image down for smaller viewports while preserving the aspect ratio, so your content stays intact. LinkedIn, Discord, Slack, and WhatsApp all handle 1200x630 images gracefully.

Twitter Card Dimensions

Twitter uses a slightly different aspect ratio for its summary_large_image card type: 1200x600 pixels, which gives you a 2:1 ratio. While Twitter will accept and display a 1200x630 image, it may crop a few pixels from the top and bottom. If Twitter is a major traffic source for you, it is worth generating a separate twitter:image at 1200x600 to ensure pixel-perfect display. For the smaller summary card type, Twitter recommends a 1:1 square image at 144x144 minimum, though most sites use the large image format because it gets significantly more engagement.

LinkedIn's Subtle Difference

LinkedIn officially recommends 1200x627 pixels for shared link previews, which is almost identical to the standard OG size but with three fewer pixels in height. In practice, LinkedIn handles 1200x630 images perfectly fine, and most developers do not bother creating a LinkedIn-specific variant. However, if you are running a B2B SaaS or professional service where LinkedIn is your primary distribution channel, creating the exact 1200x627 size ensures your previews look absolutely sharp. LinkedIn also supports a smaller 1200x627 minimum and will upscale smaller images, though this often results in blurriness.

File Size and Format Best Practices

Keep your OG image file size under 1MB for fast loading, though under 300KB is ideal. Facebook recommends keeping images under 8MB, but larger files slow down preview generation and may time out on slower connections. PNG works best for images with text overlays, logos, and sharp edges because it preserves crisp lines without compression artifacts. JPEG is better for photographic backgrounds where file size matters more than pixel-perfect sharpness. Some platforms now support WebP, but for maximum compatibility across older systems and crawlers, stick with PNG or JPEG.

Safe Zones and Text Placement

Even though your image is 1200x630, not all of that space is guaranteed to be visible on every platform. Keep important text and logos within a safe zone that is roughly 80% of the total area, centered in the image. Some platforms add rounded corners, overlay gradients, or crop edges depending on the device and feed layout. Place your primary headline text in the upper two-thirds of the image, because some mobile views truncate the bottom portion. Always test your OG images on actual devices before launching a campaign.

Generate your OG image in seconds

Paste a title, pick a brand color, and get production-ready social cards for every platform — with framework-specific meta tag snippets included.

Create Perfectly Sized OG Images