Course contentsShow
← Web Development
Lesson 1838 of 2,98234. Metadata and SEOFree lesson

Open Graph Image Requirements

Optimal image dimensions, aspect ratios, file sizes, and formats for social media link previews.

Open Graph Image Requirements

You'll learn the exact image specs social platforms expect so your link previews always look sharp and professional.

What Are Open Graph Image Requirements?

When you share a link on Facebook, Twitter, LinkedIn, or Slack, those platforms pull your site's Open Graph image to create a rich preview card. But each platform has preferences for image dimensions, file size, and format—get these wrong and your image might be cropped awkwardly, load slowly, or not appear at all.

Optimal Dimensions and Aspect Ratio

The gold standard is 1200×630 pixels (1.91:1 aspect ratio). This is Facebook's recommended size and works well across most platforms. Think of it like a universal remote that works with most TVs—not perfect for every brand, but reliably compatible.

  • Minimum: 600×315 pixels (platforms may reject smaller images)
  • Maximum: 8MB file size (though 1MB or less is ideal)
  • Aspect ratio: Stay close to 1.91:1 to avoid cropping

If you use square images (1:1) or very tall images (2:3), platforms will crop or letterbox them, often cutting off important content.

File Formats

Use JPEG or PNG. JPEG is better for photographs (smaller file sizes), while PNG works well for graphics with text or transparency—though note that transparency is usually ignored in previews and replaced with a solid background.

Avoid GIFs (they display as static images) and WebP (limited platform support for Open Graph).

File Size Performance

Keep images under 1MB for fast loading. Social media crawlers may time out on large files, causing your image not to appear at all. Compress images using tools that maintain visual quality while reducing bytes.

Key Takeaway: Use 1200×630px JPEGs or PNGs under 1MB for reliable, attractive social media link previews across all major platforms.