← Back to Blog

OG Image Size Guide: Optimal Dimensions for Every Platform (2026)

Different platforms display Open Graph images at different sizes. Use the wrong dimensions and your image gets cropped, stretched, or ignored entirely. Here's the complete reference for 2026.

The Universal Safe Size: 1200x630

If you only remember one number, make it 1200 x 630 pixels. This is the size recommended by Facebook when they created the Open Graph protocol, and it remains the best default in 2026. It has a 1.91:1 aspect ratio that works well across nearly every platform.

OGPix generates all images at 1200x630 by default — the optimal size that ensures your previews look sharp everywhere without any manual resizing.

Platform-by-Platform Breakdown

Facebook

  • Recommended size: 1200 x 630 px
  • Minimum size: 600 x 315 px
  • Aspect ratio: 1.91:1
  • Max file size: 8 MB
  • Supported formats: PNG, JPEG, GIF (first frame)

Facebook displays link previews at various sizes depending on placement (feed, messenger, sidebar), but 1200x630 ensures a crisp image in all contexts. Images smaller than 600x315 will display as a small thumbnail instead of a large preview card.

Twitter/X

  • Summary Card with Large Image: 1200 x 630 px (1.91:1 ratio)
  • Summary Card: 240 x 240 px (1:1 ratio, square)
  • Minimum for large image: 300 x 157 px
  • Max file size: 5 MB
  • Supported formats: PNG, JPEG, GIF, WEBP

For the best results on Twitter/X, use the summary_large_image card type with a 1200x630 image. Add the twitter:card meta tag to control which card type is used:

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://example.com/og.png" />

LinkedIn

  • Recommended size: 1200 x 627 px
  • Minimum size: 200 x 200 px
  • Aspect ratio: 1.91:1
  • Max file size: 5 MB
  • Supported formats: PNG, JPEG

LinkedIn is very close to Facebook's requirements. A 1200x630 image works perfectly. LinkedIn crops images that deviate from the 1.91:1 ratio, so avoid square images for link previews.

Discord

  • Recommended size: 1200 x 630 px
  • Large thumbnail threshold: Images wider than 400 px get a large embed
  • Aspect ratio: No strict requirement, but 1.91:1 displays best
  • Supported formats: PNG, JPEG, GIF, WEBP

Discord uses Open Graph tags to generate link embeds. It displays a colored sidebar with the site name, title, description, and image. Images at 1200x630 always render as a large, prominent embed.

Slack

  • Recommended size: 1200 x 630 px
  • Display width: Up to 360 px in the message pane
  • Aspect ratio: 1.91:1 recommended
  • Supported formats: PNG, JPEG, GIF

Slack reads both Open Graph and oEmbed data. It displays the image below the link unfurl. Higher resolution source images (1200px wide) are downscaled but appear sharper on Retina displays.

Quick Reference Table

PlatformSize (px)RatioMax File Size
Facebook1200 x 6301.91:18 MB
Twitter/X1200 x 6301.91:15 MB
LinkedIn1200 x 6271.91:15 MB
Discord1200 x 6301.91:1-
Slack1200 x 6301.91:1-

Common Mistakes to Avoid

  • Using images that are too small: Images under 600px wide may be ignored entirely or displayed as tiny thumbnails.
  • Wrong aspect ratio: A square logo as your OG image will get cropped awkwardly on most platforms.
  • Text too close to edges: Keep important text within the center 80% of the image to account for platform cropping.
  • Oversized files: Large image files slow down preview generation. Keep PNGs under 1 MB when possible.
  • Using SVG: No major platform supports SVG for OG images. Always use PNG or JPEG.

Generate Perfect OG Images Automatically

Instead of manually creating images at the right dimensions, let OGPix handle it. Every image generated through the OGPix playground or API is automatically sized at 1200x630 — the universal sweet spot for all platforms.

Grab a free API key and start generating perfectly-sized OG images for every page on your site.