Formatting
When a link is pasted into a chat, the preview is a picture about 1200 by 630, plus whatever title the page's meta tags supply. This page builds that picture. It does not edit your site's meta tags. You still have to host the PNG and point og:image at it. The canvas opens at 1200×630. LinkedIn's feed image is 1200×627, close enough that people swap them and then watch one network shave a hairline off the type.
Previews are small on a phone and recompressed. A headline at 72px in white on a flat or darkened field survives. A screenshot of a whole homepage does not: the type in the screenshot becomes dust. Use the page's real title as the headline here, a few words, and leave the rest to the og:title text. Bottom or center both work. Avoid the edges, because some clients crop a little.
A photo is optional. If the link is about a person, darken the portrait. The image is composed locally. Hosting it is your own upload, later, to your own site.
Open Graph, 1200×630, headline 'Notes on contrast', center, background #293145, no photo.
A 1200×630 PNG. Large type in the middle. Ready to host as og:image. The meta tag itself is not written by this page.
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
No. It makes the picture. Your site still needs og:image, and usually og:title, in the document head.
It is the common link-preview ratio. Facebook, Slack, and similar clients look for something in this neighborhood. A square will be cropped or letterboxed depending on the client.
The LinkedIn post preset here is 1200×627. Use this page for the unfurl and that page for a feed upload if you want each pixel exact.
Clients cache og:image aggressively. The file can be right and the chat can show yesterday's picture until the cache expires or you use that network's debugger.
Rarely. At thumbnail size the page's own text is unreadable. A short headline on a plain field is the preview that still says something.