Reference guide · images · Published 2026-08-15 · 3 min read

Open Graph image specifications

Build Open Graph images that render everywhere: absolute HTTPS URL, 1200x630 ratio, width and height tags, and file size limits.

Why og:image matters

The Open Graph image is what most platforms show when a link is shared, and it is the difference between an attractive card and a bare fallback. The og:image tag must be an absolute HTTPS URL that a platform's crawler can fetch anonymously, because nearly every network renders a separate image preview rather than inlining an image found on the page.

The tag set

<meta property="og:image" content="https://example.com/card.jpg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />

The minimum is og:image with the absolute HTTPS URL. Adding og:image:width and og:image:height lets the platform render the large card on the first scrape instead of fetching and measuring the image asynchronously. The URL must be publicly GET-able over HTTPS with a 200: no login wall, no hotlink protection, no block in robots or a firewall. For the image file itself, see the image optimisation guide.

Size and ratio

The universal default is 1200 by 630 pixels, a 1.91:1 ratio, which renders cleanly on Facebook, LinkedIn, Discord, Slack, WhatsApp, and iMessage, and crops acceptably on X (which natively prefers 16:9).

PlatformPreferred sizeLimit notes
Facebook / Meta1200 x 630Keep the file small; large files load slowly
X / Twitter1200 x 675 (16:9)1200 x 630 also works
LinkedIn1200 x 630Near-identical to Facebook
WhatsApp1200 x 630Keep the file under roughly 300 KB or it may be dropped
Discord / Slack1200 x 630Scales on the fly

Make one 1200 x 630 image and point both og:image and twitter:image at it. Keep the file under 1 MB to be safe across platforms, and well under the 300 KB sweet spot for chat apps that compress hard. Place the headline and any face in the central area, because platforms crop the edges differently.

Testing the card

Pair a correct og:image with good alt and file naming so the same asset earns its keep in search and on social, and keep the file sizes in check as covered in the image optimisation guide.

Need a website built, fixed, optimised, migrated or replaced?

This technical resource is written by CSMBAC, a small design and development studio. If you would rather hand the problem to a professional, the website service page explains how we build enquiry-ready websites.

Explore website services