Example Site
How to Build a Share Link Preview Card
When you share a link on social media, platforms show a card with title, description, and image. This is how it will look.
Preview how a link will look when shared on social media. Enter Open Graph title, description, and image URL or upload an image to see the card layout and export meta tags.
Enter the Open Graph fields to see how the link will appear when shared.
Image (og:image)
Recommended: 1200×630 px. Use URL or upload an image.
Preview (how it may look when shared)
Example Site
When you share a link on social media, platforms show a card with title, description, and image. This is how it will look.
Export as HTML
Add these meta tags inside your page's <head>.
<meta property="og:type" content="website">
<meta property="og:url" content="https://example.com/article">
<meta property="og:title" content="How to Build a Share Link Preview Card">
<meta property="og:description" content="When you share a link on social media, platforms show a card with title, description, and image. This is how it will look.">
<meta property="og:image" content="https://placehold.co/1200x630/417CF7/white?text=OG+Image">
<meta property="og:site_name" content="Example Site">Open Graph meta tags are special HTML <meta> elements that describe a web page for social platforms and messaging apps. When someone pastes your link on Facebook, X (Twitter), LinkedIn, Slack, or iMessage, the platform fetches your page and reads these tags to build a rich preview card—title, description, and image—instead of showing a bare URL.
Open Graph was introduced by Facebook in 2010 so that any website could define how its links appear when shared on Facebook. The protocol uses property="og:..." and content="..." in the HTML. Other platforms (Twitter, LinkedIn, Discord, etc.) adopted the same or similar tags, so today OG meta tags are the standard way to control link previews across the web.
Without OG tags, a platform may guess a title and description from your page content or show a generic favicon and URL. That often looks poor or misleading. With proper og:title, og:description, and og:image, you control exactly what people see when your link is shared, which improves clicks and trust.
When a user shares your URL, the platform’s crawler requests your page and parses the HTML. It looks for <meta property="og:..." content="..."> in the <head>. The crawler does not run JavaScript; it only reads the static HTML. So OG tags must be present in the initial HTML response (e.g. from the server or from a pre-rendered build).
The most commonly used tags are:
website or article.Facebook, X (Twitter), LinkedIn, Pinterest, Slack, Discord, Telegram, WhatsApp, iMessage, and many other apps use Open Graph (or a compatible subset) to render link previews. Some also support Twitter Card tags (twitter:title, twitter:image, etc.). Providing both OG and Twitter tags gives the best result across platforms; this tool focuses on OG, which covers the majority of use cases.
Enter the title, description, image URL (or upload an image to preview locally), and optional site name. The card updates as you type. When you use an image URL, you can export the corresponding meta tags as HTML at the bottom. Recommended image size is 1200×630 pixels for best display on most platforms.
Open Graph meta tags belong in the <head> of your HTML document. Each tag is a single <meta> element with property and content attributes.
If you write plain HTML, open the .html file and find the <head> section. If you use a framework (Next.js, React, etc.), use the appropriate place for global or per-page meta (e.g. metadata in Next.js App Router, or a shared layout head).
Insert one <meta> per Open Graph property. Use the exact property names and put the value in content. The image URL must be absolute (include https://).
<meta property="og:type" content="website"> <meta property="og:url" content="https://yoursite.com/page"> <meta property="og:title" content="Your Page Title"> <meta property="og:description" content="A short description for the preview."> <meta property="og:image" content="https://yoursite.com/og-image.jpg"> <meta property="og:site_name" content="Your Site Name">
After publishing, use this tool or a validator (e.g. Facebook Sharing Debugger, Twitter Card Validator) to confirm the preview. Many platforms cache the first fetch; if you change the tags, you may need to use the platform’s “refresh” or “rescrape” option so the new image and text appear when the link is shared again.