OpenGraph Preview Tool
Fill in a title, description, page URL, and image URL and the three mock link cards (X, Facebook, LinkedIn) update as you type. Below them, a code block builds the matching og: and twitter: meta tags with attribute values escaped. The cards are simplified mockups drawn by this page. They do not fetch your live URL or reproduce any platform's exact crop.
How to preview a link card
- Enter a Title and Description. The page suggests roughly 60 to 70 characters for titles and 150 to 160 for descriptions.
- Add the page URL (the cards show only its domain) and an Image URL. The page recommends 1200 by 630 px, a 1.91:1 ratio. The image is loaded straight from that address, so it must be publicly reachable.
- Compare the X (Twitter) Preview, Facebook Preview, and LinkedIn Preview cards. The LinkedIn card shows the title and domain but no description.
- Click Copy Meta Tags (the button under the inputs) to copy the contents of the Meta Tags block, then paste it into your page's
<head>. Theog:imageandtwitter:imagelines appear only when the image URL parses as a valid URL.
What the tags do and the limits of a mockup
Platforms read og:title, og:description, og:url, and og:image from your page's head when someone shares a link. Without these tags, platforms guess from the page text and often choose a poor image or none at all. X looks for its own twitter: tags first and falls back to Open Graph. A wide image around 1.91:1 avoids heavy cropping in large-card layouts.
This preview is generic. Real platforms truncate titles and descriptions at their own limits, crop images their own way, and cache what they scraped, so changing tags later may not show until you refresh the cache with each platform's debugger. The generated tags are a starting point. They always set the card type to summary_large_image, and if you leave a field empty the block falls back to placeholder text such as "Your Page Title Here", so fill every field before copying.