My Tool Studio
Social

OG Image Generator

This OG image generator creates the picture that shows when someone shares your page on Facebook, LinkedIn, X, Slack or WhatsApp. Type a title, subtitle and site name, pick one of three layouts and a colour theme, then fine-tune colours, font, text size and a background pattern. Add a background photo with a darkening slider and your logo. Mockups show how the link could look on Facebook, X, LinkedIn and Slack or Discord before you publish. Download PNG, JPG or WebP at 1200 x 630, three other sizes or a custom size, and copy the og:image meta tags. Bloggers use it when a post has no share image, and developers use it as an open graph image generator for docs pages.

Always freeNo sign upRuns in your browser

Where the downloaded file will live on your site.

Meta tags
<meta property="og:image" content="https://example.com/og-image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="How to write meta descriptions that people click" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://example.com/og-image.png" />

Need the other tags? Build them with the Open Graph Generator, then test the live page with the Open Graph Checker.

Text size100%
Colours

How to use

01

Write the text

Fill in Title, Subtitle (optional) and Site name or label. The title shrinks to fit, very long titles are trimmed with an ellipsis after four lines, and the preview shows exactly what you'll get.

02

Style the image

Pick a Layout, a Colour theme and a Font, then adjust Text size, the colours and Background pattern. Add a Background photo and Logo if you like, and use the darken slider for readable text.

03

Download and add the tags

Check the share mockups, choose Size and Format, then press Download or All sizes (ZIP). Type the image's final address in Image URL for the meta tags and copy the tag block.

Why OG Image Generator

Open Graph image sizes by platform

One 1200 x 630 image covers the main networks, because they all read the same og:image tag. The differences are in how they crop and how small they show it. Keep the title away from the edges, since some apps trim the image to 2:1 or a square thumbnail. If you only make one file, make it 1200 x 630.

Where it showsImage to useNotes
Facebook1200 x 630At least 600 x 315 for a large preview
LinkedIn1200 x 627 or 1200 x 630Same shape, 1.91:1
X (summary_large_image)1200 x 630Shown close to 2:1, so edges may be trimmed
Slack, Discord, Teams1200 x 630Read from og:image
Messaging apps1200 x 630Often shown as a small thumbnail; keep text large

Writing text that reads in a link preview

Share images are often shown at a third of their real size or smaller, next to the page title the network already prints. The text on the image should add to that, not repeat it word for word.

  • Keep the title to a few words. Long titles shrink and become hard to read in a feed.
  • Use strong contrast: light text on a dark background or the reverse. The darken slider helps with photos.
  • Keep important text away from the edges, where some apps crop.
  • Use the subtitle for one supporting detail, such as the topic or a date, not a second headline.
  • Put your site name or logo on every image so shares are recognisable at a glance.
  • Check the result on a phone-sized preview before publishing.

Adding the image and testing it

After downloading, upload the image to your site at a permanent address, ideally one that won't change when you edit the page. Type that address into Image URL for the meta tags, copy the block, and paste it into the page's head. The block includes og:image, its width and height, alt text from your title, and the twitter:card and twitter:image tags.

For the rest of the Open Graph tags, such as og:title, og:description and og:url, use the Open Graph Generator. Then run the live page through the Open Graph Checker to see how the preview looks and to catch a wrong image address before anyone shares the link. Networks cache previews, so if you replace the image later, give the new file a new name and rescrape the page with each network's debugging tool.

Common questions

What size should an Open Graph image be?
1200 x 630 pixels, a 1.91:1 ratio, works on Facebook, LinkedIn, Slack, Discord and X large cards. That is the default size here. Square and portrait versions are there for the few places that prefer them.
Can the OG image generator add text to my image?
Yes. Type a title, subtitle and site name and they are drawn onto the image with your chosen font and colours. Long titles shrink to fit and are trimmed after four lines, so keep them short.
Can I use my own photo as the OG image background?
Yes. Use Background photo to add an image; it fills the frame and is cropped from the centre. The darken slider adds a dark layer so white text stays readable, and the caption bar layout puts the text on a coloured band instead.
Which fonts can I use in the OG image generator?
Sans serif, Serif and Monospace. The tool uses fonts already on your device, so the exact look can differ slightly between computers. It does not load custom web fonts.
How do I add the OG image to my website?
Download the image, upload it to your site, and type its full address into Image URL for the meta tags. Copy the tag block into the head of your page. The Open Graph Generator can write the title and description tags too.
Why does my link preview show the old image or a bad crop?
Social networks cache previews, so a changed image can take time to appear. Ask them to scrape the page again with Meta's Sharing Debugger or LinkedIn's Post Inspector. A bad crop usually means the image isn't 1.91:1; use the 1200 x 630 size here.
Will one OG image work for X, Facebook and LinkedIn?
Yes. Point og:image at your 1200 x 630 file and add twitter:card with the value summary_large_image; X falls back to Open Graph tags for the image. The copied tag block includes both.
Which format should I download my OG image in?
PNG keeps text and flat colours sharp and is the safe default. JPG gives smaller files when you use a photo background. WebP is smallest, but some older link preview crawlers don't support it, so PNG or JPG is safer for og:image.
Can I preview how my OG image will look when the link is shared?
Yes. Under the download buttons the tool shows approximate Facebook, X, LinkedIn and Slack or Discord link cards using your image, title, subtitle and the domain from your image URL. Each network changes its layout now and then, so treat them as a guide, then test the live page with the Open Graph Checker.
Is the small 600 x 315 OG image size worth using?
Only when file size really matters. It is about the minimum for a large preview, and text looks soft on high-resolution screens. Use 1200 x 630 for anything with a title on it.

More Social tools

View all