OG Image Generator
Published Updated
Design a 1200 x 630 pixel share image, about 1.91:1, with a gradient, solid or photo background, a title, a subtitle and a logo, and save a PNG. The default gradient came to 760 KB and a plain color to 39 KB, and a long title wraps over the subtitle until you drag it.
What the platform page says, and what the page does
Facebook's sharing best-practices page on images lists these limits, read on 2026-11-03. The right column is what this page does with each:
| Facebook guidance | This page |
|---|---|
| At least 1200 x 630 pixels for high resolution | Always exactly 1200 x 630 |
| 600 x 315 minimum for a large image card | Exceeded |
| Aim for about 1.91:1 | 1.905:1 |
| File under 8 MB | PNG only; 24 KB to 2.2 MB on the cards measured below |
Where the og:image tag comes in
The picture is only half the job. The Open Graph protocol names og:image as an image URL that represents the page within the graph, set in a meta property tag in the page head, so the PNG must be hosted at a public address and referenced there. This page makes the file and does not write the tag. The same protocol page lists optional structured properties for the image, among them og:image:type (a MIME type, image/png for this file), og:image:width and og:image:height in pixels (1200 and 630 here) and og:image:alt, a description of what is in the image; it says a page that specifies an og:image "should specify og:image:alt".
Gradients are the costly case. A smooth diagonal gradient has few flat runs for PNG to compress, so the default card is 7 to 25 times the size of a solid one, and a noisy photo is larger still. The sizes per browser are in the table below.
The downloaded PNG in three browsers
Measured with the tool itself in Google Chrome 157, Firefox 155 and Playwright's WebKit build (not the Safari app), on generated backgrounds with the sample title and subtitle. Every download was named og-image.png and was 1200 x 630 pixels, 8-bit RGBA (PNG colour type 6), whatever the background. The sizes differ because each browser has its own PNG encoder:
| Background | Chrome 157 | Firefox 155 | The WebKit build |
|---|---|---|---|
| Default gradient | 761 KB | 168 KB | 870 KB |
| Solid #2547ea | 39 KB | 24 KB | 35 KB |
| Generated 1600 x 1000 noise texture (PNG) | 2.12 MB | 2.09 MB | 2.16 MB |
| Generated 1600 x 1000 smooth colour field (JPEG) | 842 KB | 683 KB | 753 KB |
| Generated 800 x 1600 two-way gradient (PNG) | 48 KB | 199 KB | 45 KB |
Choosing Image without uploading a picture gives a card filled with the solid start colour, the same file as Solid. A picture is scaled to cover the card and centred, so the 800 x 1600 one was enlarged to 1200 x 2400 and only its middle band, rows 590 to 1010 of the picture, is on the card. The WebKit build also writes an sRGB chunk and a 68-byte eXIf chunk holding only the colour space and the 1200 x 630 size; Firefox 155 adds a private deBG chunk.
One keystroke in the title box, which updates the state and redraws the whole card, took a median of 0.3 ms in Chrome 157, 2 ms in Firefox 155 and 1 ms in the WebKit build. The Download click, which encodes the PNG, took 16, 7 and 32 ms on the default card (5 runs each).
Long titles and other scripts
The title starts at x = 96 and wraps at 1008 px. Line counts were the same in all three browsers, and no title ink went past x = 1100, inside the safe-zone line at 1128. Titles at 64 px bold unless noted:
| Title | Lines | Block ends at y | What happens |
|---|---|---|---|
| Your Headline Goes Here (the sample) | 1 | 282 | fits above the subtitle |
| A 122-character English headline | 4 | 522 | runs over the subtitle, which starts at y = 365 |
| The same headline at 100 px | 7 | 1,077 | line 4 is cut off at the bottom; lines 5 to 7 are off the card |
| One 61-letter word | 3 | 442 | split between letters, 30 + 29 + 2 |
| 47 Japanese characters, no spaces | 4 | 522 | split between characters, 15 + 15 + 15 + 2 |
| 50 Thai characters, no spaces | 2 | 362 | split at the first character that does not fit, here inside a word |
| An Arabic headline, 69 characters | 2 | 362 | each line reads right to left; the block still starts at the left |
| A Hindi headline in Devanagari, 61 characters | 2 | 362 | split at spaces |
| A Russian headline, 67 characters | 3 | 442 | split at spaces |
The WebKit build draws text about 10 px lower than the other two: the sample title's letters start at y = 217 there and at y = 207 in Chrome 157 and Firefox 155. On the default gradient with the title alone, Chrome and Firefox differ by at most 2 colour levels on any pixel, while 17,869 pixels of the WebKit card differ from Chrome's by more than 8. Firefox sets Japanese slightly wider, with the same breaks: its widest line is 974 px against 963 in Chrome and 960 in the WebKit build.
Logo size and position
| Logo | Drawn as | Note |
|---|---|---|
| 400 x 200 PNG at the default 12% | about 144 x 72 px around (120, 536) | its left 24 px lie outside the safe-zone guide, which starts at x = 72 |
| The same logo at 5% | 60 x 30 px | |
| The same logo at 35% | 420 x 210 px around the same centre | cut off: it would start 90 px left of the card and end below it, so its ink runs from x = 0 and down to y = 629 |
| SVG with width and height (200 x 100) | 144 x 72 px | drawn like the PNG |
| SVG with only a square viewBox | 144 x 144 px | shape kept in all three browsers |
| 1440 x 720 PNG of thin lines, one black column in seven | 144 x 72 px of even grey: values 195 to 223, mean 218.4 | the logo is shrunk in halving steps, so the lines average out instead of turning into bands |
Making a share card
Step 1
Pick the background
Gradient, solid color, or a PNG, JPEG or WebP photo. A photo is scaled to cover the card and trimmed at the edges, never stretched.
Step 2
Write the title and subtitle
The title is bold, 28 to 100 px, and the subtitle regular, 16 to 56 px. Text wraps at 84% of the width. Drag the handles on the preview to move the title, subtitle and logo.
Step 3
Add a logo, then download the PNG
A PNG, JPEG, WebP or SVG logo is sized from 5% to 35% of the width. The safe-zone guide shows on screen only and is not drawn into the download.
Layout numbers
- Title text starts at 8% of the width and wraps at 1008 px, so it ends before the right safe margin.
- Line height is 1.25 times the font size, so a 64 px title takes 80 px per line.
- For a site icon rather than a share card, Favicon Generator makes the small sizes.
Share image questions
Why 1200 x 630?
Facebook's sharing guide, which is the only platform page opened for this text, says to use images of at least 1200 x 630 pixels for the best display on high-resolution devices, and to keep as close to a 1.91:1 ratio as possible. 1200 by 630 is 1.905.
How large can the file be?
The same guide limits the file to 8 MB, with a 200 x 200 pixel minimum and 600 x 315 for the large card. The PNG here stays far below 8 MB. The largest card measured, with a generated noise texture as the background, was 2.16 MB in the WebKit build.
Why is my title running into the subtitle?
The two text layers are placed independently. At the default positions, a title of four lines at 64 px ends near 522 px down, past the subtitle that starts at 365 px. Shorten the title, shrink it, or drag the subtitle lower.
Why does the bottom of my title go off the card?
A 5-line title at 100 px needs 625 px of height starting at 202 px, so it ends near 827 px on a 630 px card. Nothing stops it, so lower the size or drag the title up.
What does the safe-zone guide show?
A margin of 6% on every side, 72 px at the left and right and about 38 px at top and bottom. If a platform instead shows a centred square, only the middle 630 px of the width survives, from x = 285 to 915.
Is the picture uploaded?
Your background, logo and text are composed and exported in your browser; this page does not upload them. The tool's code reads your files through a local object URL and makes no network request.
Will a Japanese or Thai title wrap?
Yes. Text without spaces is broken between characters when a line reaches 1008 px: 47 Japanese characters made 4 lines at 64 px and 50 Thai characters 2 lines, the same in Chrome 157, Firefox 155 and the WebKit build. The Thai break fell inside a word, because the code splits by character once a run without spaces is too wide; a space where a break is acceptable gives it a better place to break.
Why is my logo cut off at the largest size?
The logo stays centred where it is, 120 px from the left and 536 px down by default. At 35% it is 420 px wide and 210 px tall, so it would start 90 px left of the card and end below its bottom; in the download its ink starts at x = 0 and reaches y = 629. Drag the logo handle in, or pick a smaller size.
Does the card look the same in every browser?
Nearly. Chrome 157 and Firefox 155 drew the default gradient with the title within 2 colour levels on every pixel, but the WebKit build draws text about 10 px lower, so 17,869 pixels of that card differ by more than 8 levels. File sizes differ more: the default card was 761 KB in Chrome, 168 KB in Firefox and 870 KB in the WebKit build.
Can I use an SVG logo?
Yes. An SVG with a width and height is drawn like a PNG, 144 x 72 px for a 2:1 logo at the default size. One with only a viewBox keeps its shape: a square viewBox gave a 144 x 144 logo in all three browsers, although they report its size differently, 150 x 150 in Chrome and the WebKit build and 300 x 300 in Firefox.