Browser-based image tool · title and background → link preview PNG or JPG

Social Share Image Generator

Type a title, pick a size and a background, and the title is wrapped and shrunk until it fits the number of lines you allow. Add a subtitle, a small label and your logo, check the result in the live preview, then save the exact pixel size as PNG or JPG. Your logo and photo stay on this device; they are drawn on a canvas here and never uploaded.

Text, size and background

Logo and background photo: JPG, PNG or WEBP, up to 25.00 MB and 50 megapixels each.

Size

Text

Press Enter in the title to force a line break. Words are never split unless one word is wider than the whole line.

Type and spacing

Font family
Alignment

Background

Background

Logo (optional)

Drop a logo here or click to choose

A PNG with a transparent background works best

Preview and file

Some apps crop link previews to a square or another shape. The guide marks the centred square so you can keep the key words inside it; it is a guide, not a rule, and it is never saved in the file.

File format

PNG keeps text edges and flat colours exact. JPG (quality 92) makes a smaller file when the background is a photo.

Preview

Preparing the preview…

Text uses your device's own sans-serif font, so the same title can wrap differently on another computer. Save the final file on the device whose look you want.

Social Share Image Generator

Operator: Abdulla Al Fahad. How tools are built and checked

When a link to your article, release note or event page is pasted into a chat or a social feed, the card that appears is built from a picture the page names in its Open Graph tags (og:image). Without one, the card is either a bare line of text or whatever image the app happens to pick from the page, often a cropped logo or an unrelated photo from the sidebar. A dedicated share image fixes that, but making one for every post in a design program is slow, and the title rarely fits on the first try.

This generator builds the image from text you type. You set a title, an optional subtitle and a small label, choose a background (a two-colour gradient, a flat colour or a photo with a darkening overlay), add a logo if you have one, and the title is wrapped and shrunk step by step until it fits the number of lines you allow. The live preview is drawn by the same code as the download, so the line breaks you see are the line breaks you get, at exactly the pixel size you picked.

Key features

  • Presets for 1200 × 630, 1200 × 675 and 1080 × 1080, plus custom sizes from 200 to 4096 px
  • Title start size from 24 to 160 px, stepped down 2 px at a time until it fits 1 to 5 lines
  • Optional subtitle (up to three lines) and a one-line label above the title
  • Logo in any corner, from 16 to 320 px tall, kept clear of the text
  • Gradient with an angle, solid colour, or photo background cropped to cover with a 0 to 90% darkening overlay
  • Left or centred text, padding from 0 to 240 px and one text colour
  • Preview-only centred square guide for apps that crop previews
  • PNG or JPG download at the exact pixel size

Canvas sizes, file types and device fonts

Three sizes are ready to pick: 1200 × 630 px, the 1.91:1 shape that many publishing guides suggest for link previews; 1200 × 675 px, which is 16:9; and 1080 × 1080 px for square posts. A custom size takes any whole number from 200 to 4096 px on each side. The download is always exactly the size shown above the preview, with no extra scaling for high-density screens, because the file is drawn on a canvas of that size and nothing else.

The output is a PNG or a JPG at quality 92. PNG is lossless, so thin letters and flat gradients stay clean; JPG is usually much smaller when the background is a photo. Neither format carries transparency here: the background always fills the whole image, and any transparent parts of a background photo come out black, the same colour as the overlay. The file name is made from the title and the size: a title of "How we moved 14,000 product photos" gives how-we-moved-14-000-product-photos-1200x630.png.

Text is drawn with your device's own sans-serif, serif or monospace font, never a downloaded web font. That keeps the tool fully local, but it means the same title can measure a little wider on one operating system than another, so it may wrap differently or settle at a different size elsewhere.

How it works

Every change recomputes a layout in output pixels. The padding is taken off all four sides first, and it is capped at 30% of the shorter side so a tiny custom size never ends up with no room at all. If you added a logo, it goes in the chosen corner of that inner box, at the height you set but never taller than 40% of the inner box's height or wider than half its width, and it reserves a band across the top or bottom: the logo's height plus a gap of 3% of the image's shorter side, at least 12 px. The text block is then centred vertically in whatever space is left.

The label is one line in semi-bold and is shortened with an ellipsis if it is too wide. The subtitle wraps at its fixed size and is cut after its third line. Both are measured first, with a gap below the label of 0.9 times the label size and a gap above the subtitle of 0.9 times the subtitle size, so the title knows how much height remains for it.

The title is then tried at its start size in bold. Words are placed on a line until the next word would overflow; a word wider than the whole line, such as a long URL, is broken between characters rather than allowed to run off the edge, and an emoji or accented letter is never split. If the result has more lines than you allow, or the lines at 1.15 times the font size are taller than the remaining space, the size drops by 2 px and the wrap is tried again. The floor is 40% of the start size (29 px for a 72 px start). If even the floor does not work, the lines that fit are kept, the last one ends in an ellipsis, and a note above the preview says so.

The preview is a scaled-down drawing of that same layout. When you press Download, a fresh canvas of the full size is drawn, encoded as PNG or JPG, saved through a temporary link, and its memory is released.

Typical uses

  • A blogger makes one card per post with the post title, the blog's name as the label and the same gradient every time, so links shared in chats look like a set.
  • A product team adds a release-notes card with the version number in the label and the headline feature as the title.
  • An event organiser puts the talk title over a darkened venue photo, with the date as the subtitle and the organiser's logo in a corner.
  • A developer creates a fallback image for every page of a documentation site that has no picture of its own.
  • A newsletter writer makes a square 1080 × 1080 version of an issue's headline to post alongside the link.

Building one

  1. Pick a size: 1200 × 630 for link previews, 1200 × 675, 1080 × 1080, or Custom with your own width and height.
  2. Type the title, and optionally a subtitle and a short label such as the section name or the date.
  3. Set the font family, alignment, the most lines the title may use, and its start size. Watch the status line above the preview: it says how many lines the title took and whether it had to step down.
  4. Choose a gradient, a solid colour or a photo background. For a photo, raise the darkening overlay until the text reads clearly over the busiest part.
  5. Add a logo if you want one, pick its corner and height, and turn on the square guide to see what a square crop would keep.
  6. Choose PNG or JPG and press Download.

Example

Settings: 1200 × 630, padding 72 px, title start 72 px with at most 3 lines, label 24 px, a subtitle that wraps to 2 lines at 32 px, logo 64 px tall bottom right

inner box: 1200 − 2×72 = 1056 px wide, 630 − 2×72 = 486 px tall
logo band: 64 px + gap 19 px (3% of 630)
text box: 1056 × 403 px
label: 24 × 1.25 = 30 px, then a 22 px gap
subtitle: 2 × 32 × 1.35 = 86.4 px, after a 29 px gap
room left for the title: 403 − 30 − 22 − 86.4 − 29 = 235.6 px

Result: the title wraps to 3 lines and still has to shrink

72 px: 3 lines × 82.8 px = 248.4 px, too tall
70 px: 3 lines × 80.5 px = 241.5 px, too tall
68 px: 3 lines × 78.2 px = 234.6 px, fits

status: Title: 3 lines at 68 px, stepped down from 72 px
whole text block 402 px tall, centred in the 403 px box
file: 1200 × 630 px PNG

Tips for best results

  • Write the title for the card, not for the page. Six to ten words at a large size read better in a small preview than a full headline at the minimum size.
  • If the status line shows a big step-down, try allowing one more line before shortening the title; four lines at 60 px often look better than three at 40 px.
  • Keep the darkening overlay at 40% or more over a busy photo. White text on an undarkened photo is hard to read once the card is shown at thumbnail size.
  • Leave the logo modest, around a tenth of the card's height. It may grow to 40% of the height inside the padding (and half the width inside it), but at that size it takes the room the title needs, and the title shrinks.
  • For a series, note your settings (colours, sizes, padding) once and reuse them, so every card changes only in its words.

Things to check before you rely on it

A link preview is shown small. Text at the 40% floor of a 72 px start is 29 px on a 1200 px image, which can end up only a few screen pixels tall in a feed. Treat a step-down to near the floor as a sign the title is too long.

Fonts differ by device. The sans-serif on one computer can be noticeably wider than on another, so a title that fits in three lines here may need four, or a smaller size, somewhere else. Make the final file on one machine and keep it, rather than re-creating it elsewhere.

The square guide is only a guide. Apps crop previews in different ways, and some do not crop at all, so text outside the square is not guaranteed to be hidden and text inside it is not guaranteed to be shown.

A photo background is cropped from the centre. If the subject sits near an edge of a wide or tall photo, crop the photo yourself first so the part you care about is in the middle.

Uploading the image is only half the job: the page still needs an og:image tag that points at the file's public address, and apps may keep showing a cached old preview for a while after you change it.

Common errors and how to fix them

"photo.heic" is a HEIC photo, which cannot be read here. Export it as PNG or JPG first.
Logos and background photos must be JPG, PNG or WEBP, and the check reads the file's contents, so renaming a HEIC file does not help. Export or share the picture as JPG from your photo app and add that copy.
A note says the title does not fit even at the smallest size and its last line ends in an ellipsis.
Too little height is left for the title. Shorten it, allow more lines, lower the padding or the logo height, or shorten the subtitle, which takes space before the title is fitted.
"A custom size must be 200 to 4096 px on each side" appears under the size fields.
One of the numbers is outside the range, empty, or not a whole number. The preview keeps showing the last valid size until both fields are corrected, and the download stays off until then.
The Download button is off and the preview asks for a background photo.
The background is set to Photo but no photo has been added. Drop one into the photo box, or switch the background to Gradient or Solid.
The download stops with a message that the background photo is no longer readable.
While you edit, only a reduced copy of the photo is in memory, so the download goes back to the original file on disk. That fails when the file has since been renamed, moved to another folder or overwritten by an editing app. Drop the photo into the Photo box once more, then press Download.

Best practices

  • Keep important words away from the edges; 60 to 80 px of padding on a 1200 px image keeps them clear of rounded card corners and small crops.
  • Check contrast at a small size by zooming the browser out until the preview is about 300 px wide; if the title is hard to read there, it will be hard to read in a feed.
  • Prefer PNG for gradient and solid backgrounds, and JPG for photo backgrounds where file size matters.
  • Give the file a stable public address and update the og:image tag when you replace it, rather than overwriting the old file in place.

Why the title shrinks in 2 px steps instead of being scaled to fit

Scaling text to an exact width would make every title a different, arbitrary size, and a short title would balloon to fill the box. Stepping down from a start size you choose keeps short titles at the size you designed for and only shrinks long ones, by the smallest amount that works. Each step re-wraps the words, because a smaller font can pull a word back onto the previous line and save a whole line of height.

Two limits are checked at every step: the number of lines you allow and the height left after the label, subtitle and logo band. That second check is why a title can shrink even when it already fits in the allowed number of lines, as in the example above, where a three-line title had to drop from 72 to 68 px to leave room for a two-line subtitle.

How the logo and the background photo are handled

A logo is decoded once, when you add it, and reduced to a copy of no more than 4 megapixels. That copy is what both the preview and the download draw, and it is still far more detail than a logo needs at its largest setting of 320 px tall, so a very large logo file brings no benefit. A background photo is handled the other way round: the preview paints a reduced copy so that redrawing after each change stays light, and the original file is decoded at full resolution only when you press Download, so a big photo still fills a 4096 px card sharply.

Both pictures stay on your own computer. The browser reads them from your disk and every drawing step happens on canvases that belong to this tab; no copy of the logo or the photo goes to a server. The card is not kept after you leave, either: reload the page and the example title and blue gradient return in place of yours.

Frequently asked questions

Which size should I use for link previews?

1200 × 630 is a common choice because its 1.91:1 shape suits the wide cards many apps show. Check the current guidance of the places you post to, since they revise their recommendations.

Can I use my own font?

No. To keep everything on your device without downloading font files, the tool uses the generic sans-serif, serif and monospace fonts your system already has.

Does the square guide appear in the downloaded image?

No. The dimmed areas and the dashed outline are drawn only on the preview, after the image itself, and the download is drawn on a separate canvas without them.

Why does the label look lighter than the title?

The label is drawn at 80% opacity and the subtitle at 85%, in the same colour as the title, so the title reads first. Pick a stronger text colour if you want the smaller lines to stand out more.