shadcn.io— 1,000s of shadcn/ui blocks
Skip to content

Make a Facebook Open Graph image

Facebook invented the 1200×630 number and then spent a decade caching it harder than anyone else. This page makes the file. The Sharing Debugger (developers.facebook.com/tools/debug) is still how you evict a stale one after you replace it.

Facebook · 1200×630
on this device1.91∶1

Template properties

The copy and marks on the card. Files stay on this device.

Background

Gradient or solid, then direction, grid and grain.

Gradient direction

Grid overlay
0.15

1200×630 · facebookexternalhit

How it works

  1. 1Compose the 1200×630 card with the split layout if you have a photo, or centered if it is a title-and-logo announcement — Facebook crops the edges, so stay inside the overlay.
  2. 2Download the PNG and host it at a stable, publicly crawlable HTTPS URL. Do not put it behind a login or a bot wall.
  3. 3Add og:image, og:image:width=1200 and og:image:height=630 to the page, then scrape it in Facebook’s Sharing Debugger so the cache starts clean.

The size, honestly

Same 1200×630 canvas as the generic Open Graph tool, different job: Facebook’s crawler (facebookexternalhit) is the one that will punish a 72dpi 600-wide JPG, ignore a file behind a login, and keep serving a deleted image for days. I keep this page for that checklist. If you just need one card for every network, start at Generate an Open Graph image. If the share is going to LinkedIn’s feed, LinkedIn OG Image Maker documents their slightly shorter 1200×627 habit.

Canvas1200×630 px
Ratio1.91∶1
Used byfacebookexternalhit
ExportPNG, composed in this tab

Frequently asked questions