OG Image Size and Safe Zones: What Gets Cropped Where
You shipped a clean Open Graph card, pasted the link into a chat, and the headline is clipped at the edge or the last word is gone. The image was fine in your editor. The platform simply cropped it, and you had no idea where the cut would land. The right OG image size gets you most of the way, but the safe zone inside it decides whether anyone can read the card.
An OG image is the picture a platform fetches from the og:image meta tag and shows in the link preview when someone shares your URL. The widely used size is 1200 by 630 pixels, which is a 1.91:1 aspect ratio. This article gives you the numbers to export, the margins to keep, and a short test to run before you ship.
What is the correct OG image size?
The correct OG image size is 1200 by 630 pixels, a ratio of about 1.91:1. Facebook's sharing documentation recommends this size for large link previews, and most other platforms that read Open Graph tags accept it without complaint.
Export as PNG or JPEG, keep the file well under a few hundred kilobytes where you can, and serve it over HTTPS at an absolute URL. A larger image at the same ratio, such as 2400 by 1260, also works and stays sharp on high-density screens, but it makes the file heavier and gains you little in a preview that renders at a few hundred pixels wide.
The ratio matters more than the pixel count. If you pick a different ratio, such as a square, the platform has to crop or letterbox it, and you lose control of what remains.
Why do social cards crop my OG image differently?
Each platform renders the image into its own card shape, so the same file is cut differently depending on where the link is pasted. A 1.91:1 image fits the standard large card exactly, but a card built for a 2:1 ratio has to trim it.
The arithmetic is simple. At 1200 pixels wide, a 2:1 card is 600 pixels tall. Your image is 630 tall, so 30 pixels are removed, usually 15 from the top and 15 from the bottom. X documents its large summary card as a 2:1 image, which is why a headline placed hard against the top edge can lose its ascenders there while looking fine on Facebook.
Beyond the ratio, some surfaces round the corners, and some overlay a domain label or a play badge on part of the picture. Compact cards in chat apps may show a small square thumbnail instead, which crops the left and right sides heavily around the center. You cannot predict each of these exactly, so you design for the worst case instead.
| Card shape | Effective ratio | What gets lost from a 1200x630 image |
|---|---|---|
| Standard large card | 1.91:1 | Nothing, apart from rounded corners |
| Large summary card | 2:1 | About 15 px top and bottom |
| Compact side thumbnail | 1:1 (center crop) | About 285 px from each side |
| Card with text overlay | Varies | A strip along one edge, often the bottom |
The compact thumbnail row is the one that surprises people. Center-cropping a 1200 by 630 image to a square keeps a 630 by 630 region, so everything outside the middle 630 pixels can vanish.
How big should the safe zone be?
Keep all important content inside a centered box of about 1072 by 568 pixels, which is a 64 pixel margin on the sides and a 31 pixel margin on the top and bottom. That margin clears the 15 pixel trim of a 2:1 card with room to spare for rounded corners.
This is a working rule, not a platform specification, so treat the numbers as a defensible default. If you also care about the square thumbnail, put the single most important element, usually a logo mark or the first two words of the headline, inside the middle 630 pixels. Then even the harshest crop shows something that identifies the page.
Use this checklist when you lay out a template:
- Set the canvas to 1200 by 630 pixels.
- Draw a guide box inset 64 pixels left and right and 32 pixels top and bottom.
- Place the headline and any numbers or names inside the guide box only.
- Put the logo or brand mark inside the middle 630 pixels so a square crop keeps it.
- Leave backgrounds and gradients to bleed to the full canvas so a trim shows no empty edge.
How do you keep headline text from running off the card?
Cap the headline's line count and font size, and shorten the text rather than shrinking it. A headline that needs three lines at 64 pixels is already fighting the safe zone, and shrinking it to 36 pixels makes it unreadable in a card that displays at around 500 pixels wide.
A good working limit is two lines of large type, around 60 to 72 pixels, with the text block anchored to the vertical center rather than the top or bottom. Anchoring to the center means that when 15 pixels disappear from each end, the text block loses nothing, because the trim is symmetric. Anchoring to the bottom is the most common mistake, since overlays and rounded corners hit the bottom first.
If your titles vary in length, clamp them in code. Truncate at a character count you chose by testing your longest real title, and add an ellipsis. Static design tools cannot do this for you, which is why per-page dynamic generation tends to beat a hand-made image per post.
Where does this get tedious, and what removes the work?
Doing this by hand is fine for one image. It stops being fine when you have a blog, a docs site, and a product catalog, each needing a card that respects the same margins, loads a font correctly, and truncates its own titles. In a Next.js app that means a route using @vercel/og, which wraps Satori and supports only a subset of CSS, and a layout written to that subset from the start.
BuyCoded's OG Image Generator Boilerplate is a ready-made version of that setup. Its product page says the templates are already written to the Satori CSS subset, that it ships DejaVu Sans in public/fonts/ with the font swap handled in lib/fonts.ts, and that a preview page surfaces template errors immediately. You still apply the safe zone from this article, but you apply it once, in a template, instead of in every image.
If you would rather build your own route, the BuyCoded blog has separate guides on generating dynamic OG images in Next.js, on what Satori's CSS subset breaks, and on fixing a preview that will not refresh.
How do you test the crop before you ship?
Render your image, then check it against the harshest crops yourself instead of waiting for a platform to show you. This takes a few minutes and catches nearly every clipping problem.
- Open the exported 1200 by 630 file in any image viewer.
- Cover 15 pixels at the top and bottom with a mask and confirm the headline still reads.
- Crop a centered 630 by 630 square and confirm the logo or first words remain.
- Shrink the image to about 500 pixels wide and read the headline at that size.
- Paste the live URL into the platform debuggers or a chat app to confirm the real result.
If a platform still shows an old picture after you fix the file, that is a caching problem, not a sizing one. The platform has stored the earlier image against your URL, so change the image URL or ask the platform's debugger to scrape the page again.
Is it worth using a template instead of designing each image?
For a single landing page, designing one image by hand is quicker than setting up a pipeline, and a template is not worth buying. The calculation changes once you publish regularly, because every new page needs a new image and every manual image is another chance to put text outside the safe zone.
A template also has limits. Dynamic generation adds a server route that you now have to keep working, and an edge function can fail in ways a static PNG never will. If your site has fewer than a handful of shareable pages, a static image per page is a perfectly good answer. Choose the template when the page count, not the design effort, is what hurts.
What is the next step?
Look at the OG images on your three most shared pages, run the five-step crop test above, and note which ones fail. If more than one fails, the fix belongs in a shared template rather than in each file. Browse the BuyCoded catalog to see the OG generator alongside the other developer packs, read its product page for what is included, and decide whether it saves you more time than building the route yourself.
Frequently asked questions
What size should an OG image be?
An OG image should be 1200 by 630 pixels, a 1.91:1 ratio. This is the size Facebook's sharing documentation recommends for large link previews, and most platforms that read Open Graph tags accept it. Export it as PNG or JPEG, host it at an absolute HTTPS URL, and keep important text inside a centered safe zone.
Why is my OG image cut off on X?
X renders its large summary card at a 2:1 ratio, so a 1200 by 630 image is trimmed to 1200 by 600. That removes roughly 15 pixels from the top and bottom. Text placed close to either edge gets clipped. Center your headline vertically and keep a margin of at least 30 pixels from the top and bottom.
What is the safe zone for an OG image?
A practical safe zone is a centered box of about 1072 by 568 pixels inside a 1200 by 630 canvas, which leaves 64 pixels at the sides and about 31 at the top and bottom. This is a working rule rather than an official spec, but it clears the 2:1 crop and rounded corners on common cards.
Can I use a square image as an OG image?
You can, but the result is less predictable. Platforms that expect a wide card will crop or letterbox a square, and you lose control of what remains visible. A 1200 by 630 image with the logo inside the central 630 pixels gives you both a good wide card and a usable square crop.
Does a larger OG image look sharper?
A larger image at the same ratio, such as 2400 by 1260, can look sharper on high-density screens, but link previews render small, so the gain is limited. The cost is a heavier file that is slower to fetch, and some crawlers have size limits. Stay at 1200 by 630 unless you have a specific reason.