Guide

OG Image Dimensions: The Complete Size Guide for Every Platform

The definitive guide to OG image sizes for Facebook, Twitter, LinkedIn, Slack, Discord, and more. Includes pixel dimensions, aspect ratios, and file size limits.

Quick Answer

The standard OG image size is 1200×630 pixels with a 1.91:1 aspect ratio. This single size works across Facebook, Twitter/X, LinkedIn, Slack, Discord, WhatsApp, and iMessage. Keep file size under 5MB (ideally under 1MB) and use PNG or JPEG format.

The Universal OG Image Size

Use 1200×630 pixels for your OG images. This is the universally compatible size that works across all major platforms without cropping or distortion.

  • Width: 1200px
  • Height: 630px
  • Aspect ratio: 1.91:1
  • Format: PNG or JPEG (PNG for text-heavy, JPEG for photo-heavy)
  • File size: Under 1MB recommended, 5MB maximum

Platform-Specific Dimensions

PlatformRecommended SizeMin SizeAspect RatioMax File Size
Facebook1200×630600×3151.91:18MB
Twitter/X (summary_large_image)1200×628300×1572:15MB
Twitter/X (summary)240×240144×1441:15MB
LinkedIn1200×627200×2001.91:15MB
Slack1200×630Any1.91:1No limit
Discord1200×630Any1.91:18MB
WhatsApp1200×630300×2001.91:15MB
Pinterest1200×630200×2001.91:110MB

Key takeaway: 1200×630 covers every platform. You never need separate images for different platforms.

Common Mistakes to Avoid

  • Too small: Images under 600px wide look blurry on high-DPI screens
  • Wrong aspect ratio: Square images (1:1) get cropped awkwardly in link previews
  • Text too small: Keep text large enough to read at thumbnail size (~40px minimum font size at 1200px width)
  • Important content near edges: Some platforms crop a few pixels from each edge — keep a 60px safe zone
  • Using SVG: Most platforms don't support SVG for og:image — always use PNG or JPEG
  • Relative URLs: The og:image URL must be absolute (start with https://)

Generating the Right Size Automatically

With OG Image Generator, every image is automatically generated at 1200×630 pixels — the perfect size for all platforms. You can customize the size if needed:

GET https://ogimg.xyz/api/og?title=My+Post&width=1200&height=630&template=gradient

All 10 templates are optimized for the 1.91:1 aspect ratio with proper text sizing and safe zones built in.

Frequently Asked Questions

What is the best OG image size for Twitter?

For Twitter's summary_large_image card, use 1200×628 pixels. However, 1200×630 also works perfectly — Twitter handles the 2-pixel difference gracefully.

Can I use a different size for each platform?

You can, but it's unnecessary. A single 1200×630 image works across all platforms. Use twitter:image only if you need a Twitter-specific square image.

What file format should OG images be in?

Use PNG for images with text, logos, or sharp graphics. Use JPEG for photographic images. Avoid SVG, GIF, and WebP as they are not universally supported.

Related Guides

Compare with Alternatives

See how OG Image Generator stacks up against other tools.

Start Generating OG Images

Free API for developers. 50 images/month, 10 templates, no credit card required.