Open Graph & Twitter Card Generator
Developer ToolsGenerate Open Graph and Twitter Card meta tags for any web page. Paste into your HTML <head> for rich previews on Facebook, X, LinkedIn, and WhatsApp.
What is a OG Meta Tags?
When someone shares a link on Facebook, LinkedIn, WhatsApp, or X/Twitter, the platform does not display the raw URL — it displays a rich preview card built from <meta> tags embedded in the page's <head>. If those tags are absent or incomplete, the platform guesses: it might pull the wrong image from your page, use your <title> verbatim (site name suffix and all), or show nothing at all. Open Graph and Twitter Card meta tags are the mechanism you use to take control of that preview.
Open Graph (OG) is an open protocol originally developed by Facebook in 2010. It uses property="og:*" attributes in <meta> tags to define six core properties for a page: its type, title, description, canonical URL, image, and site name. Every major social platform — Facebook, LinkedIn, Pinterest, Slack, Telegram, and WhatsApp — reads OG tags natively when generating link previews.
X/Twitter maintains its own parallel system called Twitter Cards, using name="twitter:*" attributes. Twitter does fall back to OG values, but the twitter:card property — which determines the visual layout of the card in the timeline — has no OG equivalent and must be set explicitly. A summary_large_image card displays a full-width banner image above the title; a summary card shows a small square thumbnail. Choosing the right card type is as important as the image itself.
The Open Graph & Twitter Card Generator takes your page details — title, description, URL, image, site name, page type, and Twitter card preference — and outputs a complete, copy-paste-ready HTML block for your <head>. There is nothing to install: paste the output into your HTML template, WordPress theme, Next.js metadata export, or CMS SEO settings and you are done.
For structured data that helps search engines understand your page, use the Schema Markup Generator alongside this tool. For tracking social traffic back into your analytics, generate UTM-tagged versions of your shared URLs with the UTM Link Generator.
How to use this OG Meta Tags calculator
- Enter your Page Title — this becomes both
og:titleandtwitter:title. Write it as you want it to appear in the social preview card: compelling and complete without a site name suffix, under 60 characters to prevent truncation on most platforms. - Enter your Description — becomes
og:descriptionandtwitter:description. Aim for 150–160 characters. Write it as a call to action or value statement: this is the text displayed under the title in every link card. - Enter your Page URL in the Page URL field — the canonical URL of the page without UTM parameters or session tokens. Use the full URL including
https://. - Enter your Image URL in the Image URL field — the direct URL to your OG image (not a page URL, but the image file itself ending in
.jpgor.png). Use a 1200 × 630 pixel image hosted at a publicly accessible HTTPS URL for best results. - Enter your Site Name — your brand or website name as you want it to appear in the card (e.g. "thecalcu.com"). This populates
og:site_name. - Select your Page Type from the Page Type dropdown — choose
websitefor general pages and landing pages,articlefor blog posts,productfor e-commerce product pages,profilefor user profile pages, orvideo.otherfor pages whose primary content is a video. - Select your Twitter Card Type — use
summary_large_imagefor articles, landing pages, and product pages where a large visual makes an impact. Usesummaryfor tools, utilities, and profile pages. Useapponly for pages that are primarily promoting a mobile app with App Store and Google Play links. - Optionally enter your Twitter / X Handle in the Twitter Handle field (e.g.
@yoursite) — this adds thetwitter:sitetag, which attributes the card to your account. Leave blank if you do not have a site Twitter account. - Review the output block in the Meta Tags HTML panel and click the copy button to copy the full block to clipboard. Paste it inside your HTML
<head>, before the closing</head>tag.
Formula & Methodology
### Open Graph Properties Eachog:property maps to a specific HTML<meta>tag using thepropertyattribute: | Property | Tag | Purpose | |---|---|---| |og:type|<meta property="og:type" content="website" />| Tells platforms how to categorise the page. Affects display features on Facebook. | |og:title|<meta property="og:title" content="..." />| The headline shown in the preview card. Truncated at ~60–65 characters on most platforms. | |og:description|<meta property="og:description" content="..." />| The body text under the title. Truncated at ~155 characters. Rendered on Facebook, LinkedIn, Telegram. Twitter does not always display it. | |og:url|<meta property="og:url" content="..." />| The canonical URL. All shares of this page are aggregated under this URL in Facebook's like and share counts. | |og:image|<meta property="og:image" content="..." />| The image displayed in the preview. Must be an absolute HTTPS URL. | |og:site_name|<meta property="og:site_name" content="..." />| The site brand name. Shown in smaller text under the title on Facebook cards. | ### Twitter Card Properties Twitter Card tags use thenameattribute (notproperty): | Property | Effect | |---|---| |twitter:card| Determines card layout.summary_large_imageshows a full-width banner.summaryshows a small square thumbnail.appshows an install card for mobile apps. | |twitter:title| Card headline. Twitter recommends under 70 characters. If absent, falls back toog:title. | |twitter:description| Card body. Under 200 characters. Not always shown depending on card type and rendering context. | |twitter:image| Card image. If absent, falls back toog:image. Must be under 5 MB forsummary_large_image. | |twitter:site| Your site's Twitter/X handle (e.g.@thecalcu). Optional but recommended — enables card attribution. | ### Recommended Image Specifications The standard 1200 × 630 pixel image at the 1.91:1 aspect ratio covers every major platform without cropping or letter-boxing: - Facebook: minimum 600 × 315 px; renders at 1200 × 630 on desktop - LinkedIn: recommends 1200 × 627 px - Twittersummary_large_image: 1200 × 628 px, cropped to 2:1 - WhatsApp: uses the OG image at 300 × 157 px thumbnail; the full image is shown on tap - Slack / Telegram: renders at approximately 500 × 261 px Keep the primary subject of the image centred and away from the edges to survive crops across different platform aspect ratios. Use JPEG for photographs (smaller file size) and PNG for graphics with text or logos. Host the image at a stable, publicly accessible HTTPS URL — social crawlers do not follow redirects reliably. ### What Happens When og:image Is Missing | Platform | Behaviour | |---|---| | Facebook | Scans the page for any crawlable image; often finds a logo, sidebar graphic, or ad pixel — or shows a text-only card with no image. | | LinkedIn | Omits the image entirely; renders a smaller, less prominent text card. | | WhatsApp | No thumbnail alongside the link; just the page title and domain in plain text. | | X/Twitter | Withsummary_large_image, shows a large grey placeholder box. Withsummary, shows a broken image icon in the thumbnail position. | | Slack | Shows a plain URL unfurl without an image pane. | | Telegram | Shows the page title and description with no image attachment. | ### How og:type Affects Card Rendering -website— the universal default. Produces a standard link card on all platforms. Use this when no other type applies. -article— Facebook reads additionalarticle:namespace tags (publish time, author, section) when this type is set. No visual difference on other platforms, but correct semantically for blog posts. -product— enables price and availability display on platforms that support the product schema (Facebook Shops, Pinterest). Without supplementaryproduct:tags, it behaves likewebsiteon most platforms. -profile— intended for personal profile pages. LinkedIn and Facebook may display first and last name fields fromprofile:first_nameandprofile:last_nametags. -video.other— triggers video card treatment on Facebook and LinkedIn when a video is embedded. Without an actual embeddable video on the page, it degrades to a standard link card.
Frequently Asked Questions
