Image sizes
Open Graph image size: 1200 x 630 pixels
The picture that appears when someone shares a link is the page's og:image. 1200 by 630 pixels, at about 1.9:1, is the size almost every link preview is happy with.
Open Graph
- Link preview (og:image)1200 x 630
- Large image card on X1600 x 900
- Square preview1080 x 1080
Open Graph sizes at a glance
| Use | Size | Ratio | Notes | Free tool |
|---|---|---|---|---|
| Link preview (og:image) | 1200 x 630 px | 1.9:1 | Used by Facebook, LinkedIn, Slack, Discord and most messaging apps. Keep text away from the edges, which some apps crop. | OG image 1200x630 |
| Large image card on X | 1600 x 900 px | 16:9 | X shows a large link card at 16:9. Use the og:image above if you don't set a separate X image. | X post image 1600x900 |
| Square preview | 1080 x 1080 px | 1:1 | Some apps show a square thumbnail beside the title. A centred subject survives both crops. | 1080x1080 |
- Use an absolute URL in the og:image tag, and make it a JPEG or PNG, which every crawler reads.
- Put the important part in the middle: apps crop to a square or a wide strip.
- Test the link in each app you care about, because they cache the first preview they fetch.
Platforms change their layouts: if an exact size matters, check the platform's own help page. Need another size? Resize image.
Serve it with Fileboy
Upload one picture and ask for the size in the URL. Fileboy makes the copy when it is first requested and keeps it, so you never prepare a file for each platform.
https://api.fileboy.io/images/get/FILE_ID?transform=resize:1200x630;format:jpegMore in the image transformation docs.
Common questions
What is the best size for an og:image?
1200 by 630 pixels. It is large enough to look sharp on high-density screens, and it matches the shape most platforms show.
Can I use a WebP or AVIF for og:image?
Some crawlers read them and some don't. A JPEG or PNG is the safe choice, which is why the example URL asks for format:jpeg.
Other platforms
Add Fileboy to your next project
We built Fileboy to stop rebuilding file handling for every app. Create an app, paste your key and upload a file. The free plan needs no card.