Open Graph Preview Generator

Open Graph Preview Generator

Fill in the fields - the cards, checks and tags update as you type.

Page content (Open Graph)

The full address of the page, starting with https://. Leave blank to omit it.
Absolute https address. 1200 by 630 pixels is the size most platforms recommend.

Site and type

Language and territory joined by an underscore, for example en_IN.

Twitter / X card

Handle of the site account, starting with @.
Optional. Handle of the author of this page, starting with @.
Only needed when the card image differs from og:image.
Live preview

Two generic cards show the same content. The badge marks the card type your twitter:card setting selects. Platform layouts differ.

Large image card Selected
Add an https image URL to preview it here
yourdomain.com
Your title appears here
Your description appears here - one or two sentences that explain what the page offers.
Compact card Selected
No image
yourdomain.com
Your title appears here
Your description appears here.
Readiness checks
    Paste these lines inside the head element of the page. Download saves them as social-meta-tags.html.

    What Open Graph Tags Do

    Open Graph is a set of meta tags placed in a page's head. When someone shares a link, the receiving platform reads these tags to build a preview: a headline, a short description, an image, and the site name. Without them, the platform has to guess from the page content, and the result is often an unhelpful excerpt or a bare web address.

    Twitter, now X, has its own twitter: tags that control the card layout. Many platforms still fall back to the Open Graph values when the Twitter-specific ones are missing. That is why this tool only writes the Twitter title, description and image when they differ from the Open Graph values, unless you ask for them explicitly.

    How the Cards and Checks Judge Your Tags

    The two cards are generic previews. The large card shows the image above the text, and the compact card shows a small square thumbnail beside it. The checklist beneath them looks at each value against the ranges below, which match the counters beside the fields.

    ValueIdeal rangeWhat the tool flags
    Title40 to 60 charactersMissing is a failure. Over 70 characters is flagged as likely to be cut off.
    Description70 to 200 charactersMissing is a failure. Over 300 characters is flagged, since most cards cut it short.
    ImageAbsolute https address, about 1200 by 630 pixelsRelative paths and http addresses fail. Under 200 pixels on a side fails. Under 600 pixels wide, or unusual proportions, gets a warning.
    Image alt textA short description of the pictureWarned when an image is set without alt text.
    Localelanguage_TERRITORY, such as en_INA hyphen instead of an underscore fails.

    Practical Use Cases

    Product PagesGive each product a clear headline, a price-free description and a photo that still reads well at thumbnail size.
    Blog and News PostsSet the og:type to article, add the publication site name and check that the headline is not cut off in a share.
    Landing PagesTest the large card for campaign pages, and keep the compact card in mind for pages that only need a small thumbnail.
    Events and ProfilesUse the profile or website type where it fits, and add a site handle so shares can be credited to the right account.

    Frequently Asked Questions

    What is the difference between the og tags and the twitter tags?

    The og tags follow the Open Graph standard and are read by most social networks and messaging apps. The twitter tags are specific to the X card format. Many platforms fall back to the Open Graph values when Twitter-specific tags are missing, which is why this generator leaves the twitter title, description and image out unless you tick the option to write them explicitly.

    Which image size should I use for a share card?

    A landscape image close to 1.91 to 1 at around 1200 by 630 pixels is the size most platforms recommend. The tool treats a shape between 1.8 and 2.0 as a good fit, flags images under 200 pixels on a side as too small, and warns when the width is under 600 pixels.

    Why does the preview not match what a platform shows?

    Each platform has its own card layout, and platforms cache link previews, so a change can take time to appear. The cards in this tool are generic previews. Use the link debugger of the platform you care about as the final check after you publish.

    Is anything I type uploaded?

    No. The meta tags are built in your browser and your entries are saved in local storage on your device. The only outbound request is your browser loading the preview image URL you enter, so the image can be shown in the cards.