Build OG and Twitter Card meta tags with a live social share preview.
🔒 100% client-side — previews are mocked locally. Paste the generated tags into your page's <head>.
When someone pastes your link into Facebook, X, LinkedIn, Slack, or Discord, the platform reads special <meta> tags in your page to build the title, description, and image card. Getting those tags right is the difference between a link that gets clicked and one that looks broken. This tool lets you fill in the fields and see the preview live while it generates the full set of Open Graph and Twitter Card tags.
Open Graph (og: prefix) was created by Facebook and is now read by almost every platform — Facebook, LinkedIn, Slack, Discord, Telegram, iMessage. Twitter Cards (twitter: prefix) are X/Twitter-specific, but Twitter falls back to Open Graph when its own tags are missing. Generating both means your preview looks correct everywhere with no guesswork.
For og:image and twitter:image, use a 1.91:1 ratio at 1200×630px, kept under ~1 MB and in JPG or PNG. Square images (1080×1080) work for the summary card type but get cropped on platforms that expect the wide ratio. Always use an absolute URL (including https://) for the image — relative paths do not work.
Platforms cache previews aggressively, sometimes for days. After deploying your tags, force a re-scrape with the Facebook Sharing Debugger, Twitter Card Validator, or LinkedIn Post Inspector. Critically, the tags must live in the raw server HTML (SSR or static) — crawlers that do not run JavaScript cannot see tags injected by a client-side framework at runtime.
More tools you might find useful
Convert PNG/JPG to WebP and see the size savings.
Convert pixels to rem and em with a custom root font size.
Strip comments, metadata, and whitespace from SVG files.
Convert WebP images to PNG or JPG in your browser.