OG Image Generator

Image size—
Format—
Where is the preview?—

How OG Image Generator is calculated: OG image = 1200 × 630 PNG canvas — headline and subtext drawn centred on your background colour

What is an OG image?

An OG image is the picture that appears when someone shares a link to your page. OG stands for Open Graph, the system Facebook created for link previews, and almost every social app now reads it. When a link is pasted into WhatsApp, X, Facebook, or LinkedIn, the app looks for an og:image tag in the page, downloads the picture it names, and shows it as a card with the title and a short line of text. Without an OG image, the same link shows as a bare line of text — or with a random image the app guessed from the page.

The standard size for an OG image is 1200 by 630 pixels. That ratio, about 1.91 to 1, is the size the big platforms designed their cards around, and an image made to that size fills the card without being cropped or stretched. A smaller image gets stretched and looks soft; a square image gets its sides cut off. Making the image exactly 1200 by 630 is the simplest way to control what people see before they ever visit your page.

This generator draws that image for you, in your browser. Type a headline and a short line of text, pick a background colour and a text colour, and click the button. It draws the words centred on a 1200 by 630 canvas and offers the result as a PNG download, ready to upload to your site and name in the og:image tag.

How this OG image generator works

The drawing happens on a canvas, the browser's built-in drawing surface. When you click the button, the tool creates a canvas 1200 pixels wide and 630 pixels tall, fills it with your background colour, and draws the headline in large bold text in the middle, with the subtext in smaller text below it. Long headlines wrap onto more than one line automatically, so the words stay inside the frame instead of running off the edge.

The image is never uploaded anywhere. The canvas lives in your browser's memory, the preview you see is drawn from that canvas, and the download link is a file made from the canvas on your own device. The file is a PNG, which keeps text edges sharp — a JPEG would blur the letters slightly, and for an image that is mostly text, sharpness matters more than file size.

One honest note: the numbers in the results box are fixed. The size is always 1200 by 630 and the format is always PNG, because that is what this tool always draws — there is nothing to measure. The real work, the drawing itself, happens in your browser when you click the button, and the preview and download appear below the results box. The automated checks for this page assert those fixed values, not the pixels of the canvas, because the canvas only exists in a real browser.

The headline and subtext, explained

The headline is the part people read. Keep it short — five to eight words is about right for a 1200-pixel-wide card at large type. How to Brew Filter Coffee is a good headline: it names the topic and the benefit in five words. A headline of fifteen words will wrap onto three lines, shrink the impact, and push the subtext toward the bottom edge. Write the headline as if it were the title of the shared post, because that is what it becomes.

The subtext is the supporting line. One short sentence is enough: A simple guide for beginners says who the page is for and what it gives them, in five words. The subtext is drawn smaller than the headline on purpose — it is a whisper, not a shout. If the subtext runs past about ten words, it wraps too, and the card starts to look crowded. Cut words until the card breathes.

The two colours are the design. A dark background with white text — the default here is a deep navy, #1a1a2e, with white text — reads well on every platform and survives the slight darkening some apps apply to preview cards. If you choose a light background, use dark text; the rule is contrast first, brand colours second. Type any hex colour, like #0066cc for a blue or #ffffff for white, and the canvas uses it exactly as typed.

A worked example: an OG image for a coffee guide

Take the defaults loaded on this page. The headline is How to Brew Filter Coffee, the subtext is A simple guide for beginners, the background is #1a1a2e, and the text colour is #ffffff. Click Generate OG Image and the tool draws a 1200 by 630 canvas, fills it with deep navy, and draws the headline in large bold white letters in the centre, with the subtext in smaller white letters below it. The results box shows the size as 1200 × 630, the format as PNG, and a note that the preview and download appear below the results.

Download the PNG and name it something clear, like og-filter-coffee.png, then upload it to your site and add the tag to the page head: a meta tag with property og:image and content set to the full address of the image. The page also needs og:title and og:description tags, which is what a meta tag generator builds for you — generate the tags there, paste them with the image tag, and the card is complete.

Share the link to check it. Paste the page address into a chat and the card should show the navy image with your headline. If it shows an old image or no image, the chat app has cached the previous preview — wait a few minutes and share again, or use the platform's sharing debugger to clear the cache. The image file itself is 1200 by 630, so if the card looks wrong, the problem is the cache, not the image.

Why OG images matter for every page

Most traffic to a new page does not come from search. It comes from someone pasting the link into a chat, a group, or a post — and the card is the whole pitch. A link with a clear image and a readable headline gets tapped far more often than a bare link, because people decide in a second whether the page is worth opening. A page with no OG image looks unfinished, and some readers assume the site is broken.

The image also controls the first impression. Without an og:image tag, the sharing app picks an image from the page itself — often a logo, a thumbnail, or an ad — and the choice is rarely flattering. Setting the image yourself means the card shows the words you chose, in the colours you chose, at the size the platform expects. It is a minute of work per page, and it changes what every share looks like.

OG images matter for search too, indirectly. A shared link that gets tapped sends readers to the page, and readers who arrive from a share are real visitors — they read, they stay, and some of them link to the page themselves. None of that happens if the share looks like a dead link. If the title on the card needs checking, a title tag checker can show how the page title reads before you share it.

OG image generator vs designing in an image editor: which do you need?

A full image editor gives you total control: photos, logos, gradients, layered text, and exact placement. The result can be beautiful, and for a flagship page or a launch post, that control is worth the time. But it takes time — opening the editor, setting the canvas to 1200 by 630, placing the text, exporting, and uploading — and for ten ordinary blog posts, that is an hour you will not spend.

This generator trades control for speed. It draws one layout — centred text on a solid colour — in a second, with no design skill needed. The layout is plain, but plain is what works for a text card: the words are large, the contrast is high, and nothing distracts from the headline. For most pages, that is all the card needs to do.

Use both, for different pages. Design the OG image by hand for the pages that matter most — the homepage, the flagship guide, the launch post. Use this generator for the rest, where a clean text card is enough and speed matters more than polish. The same rule applies to the tags around the image: a meta description generator writes the short text that appears under the title in search results, which is the other half of the first impression.

Common mistakes with OG images

The most common mistake is using the wrong size. A square image made for a profile picture gets its sides cropped in a 1.91 to 1 card, often cutting off the very words that matter. A tiny 400-pixel image gets stretched to fill the card and looks blurry. Make the image 1200 by 630 from the start, which is what this generator does, and the size problem disappears.

The second mistake is putting the important words near the edge. Some platforms crop a few pixels from each side, and text that touches the edge can lose its first or last letter. Centred text with generous margins — which this generator draws by default — is safe. The third mistake is low contrast: light grey text on a white background, or dark blue on black, is unreadable at the small size a chat preview shows. Test the card by looking at it on a phone, not on a large monitor.

The fourth mistake is forgetting to update the image when the page changes. A guide that was rewritten still shares its old card until the image and the tags are updated — and the sharing cache means the old card can linger for hours after the fix. The fifth mistake is naming the file vaguely, like image1.png, so that six months later nobody knows which page it belongs to. Name it after the page, and the site stays manageable.

How to use this OG image generator

First, type the headline — five to eight words that name the topic and the benefit. Then type the subtext, one short sentence saying who the page is for. Then set the colours: the background as a hex code like #1a1a2e, and the text colour like #ffffff. The defaults on this page are a working combination, so you can generate with them first and adjust after you see the preview.

Click Generate OG Image. The canvas is drawn in your browser, and the preview appears below the results box with a download link. Check the preview: is the headline readable, does it fit, is the subtext clear? If the headline wraps awkwardly, shorten it by a word or two and generate again. Each click redraws the canvas from the current fields, so you can iterate in seconds.

Download the PNG, upload it to your site, and add the og:image tag to the page head alongside the title and description tags. Nothing you type is uploaded or stored — the drawing runs entirely in your browser, and closing the page deletes everything. If the headline needs a different case style before you draw it, a case converter can fix the capitalisation first.

Frequently Asked Questions

1200 by 630 pixels. That is the size the big platforms designed their share cards around, and an image made to that size fills the card without being cropped or stretched. This generator always draws at exactly 1200 by 630, so the size is never a guess.

Yes. The image is drawn on a canvas in your browser, the preview is drawn from that canvas, and the download is a file made on your own device. Nothing is uploaded to any server, and closing the page deletes everything. The canvas drawing only happens in a real browser — the automated checks for this page assert the fixed size and format, not the pixels.

Social apps cache link previews, so a link shared before you added the image keeps showing the old card for a while. The image and tags are correct; the cache is stale. Wait a few minutes and share again, or use the platform's sharing debugger to clear the cached preview for that address. Facebook, X, and LinkedIn all provide a debugger page for this.

PNG. Text stays sharp in PNG, while JPEG blurs letter edges slightly. For an image that is mostly headline text, sharpness matters more than the smaller file size a JPEG would give, so this generator always downloads a PNG.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.