Skip to main content

Meta Tags Preview

See exactly how your page will appear when shared on Twitter/X, Facebook, and LinkedIn. Enter your Open Graph and Twitter Card meta tag values and get a live social preview. No URL needed — all previews run in your browser.

✓ Twitter/X, Facebook, LinkedIn previews ✓ og:title, og:description, og:image ✓ Live preview — no URL needed

Frequently Asked Questions

What are Open Graph meta tags and why do they matter?▼

Open Graph (OG) meta tags are HTML tags that control how your page appears when shared on social platforms like Twitter/X, Facebook, LinkedIn, and iMessage. Without them, social networks scrape random text and images — often poorly. With proper OG tags, you control the title, description, image, and URL preview. A good OG preview dramatically increases click-through rates on shared links.

What are the essential meta tags every page needs?▼

At minimum: og:title (max ~60 chars), og:description (max ~200 chars), og:image (1200×630px recommended), og:url (canonical URL). For Twitter/X: twitter:card set to 'summary_large_image' for full-width image previews. For search engines: <title> (50–60 chars) and <meta name='description'> (150–160 chars). Also add og:type (usually 'website' or 'article') and og:site_name.

What image size should I use for og:image?▼

Use 1200×630 pixels (1.91:1 ratio) — this works on all major platforms. Twitter/X minimum is 300×157px (summary_large_image). Facebook recommends 1200×630px. LinkedIn renders best at 1200×627px. Keep image file size under 8MB. Use JPG or PNG — avoid GIFs. Use an absolute URL (starting with https://) — relative paths don't work for og:image.

What's the difference between twitter:card types?▼

'summary' shows a small square thumbnail with text (good for general pages). 'summary_large_image' shows a large landscape image above the text (best for articles and content). 'app' is for app store links. 'player' is for video/audio embeds. Most sites should use summary_large_image for all content pages to maximize visual impact in feeds.

Why doesn't my og:image show when I share my link?▼

Common causes: (1) Image URL is relative, not absolute. Use the full https:// URL. (2) Image is behind authentication or returns 4xx/5xx. (3) Image is too small — platforms may ignore images below 200×200px. (4) Platform cached the old preview — use Facebook's Sharing Debugger or Twitter's Card Validator to force re-scrape. (5) og:image tag is missing from the <head> section. (6) Robots.txt blocks the crawler from fetching the image URL.

How do I add meta tags in Next.js, Astro, and other frameworks?▼

Next.js 13+ App Router: export const metadata = { openGraph: { title: '...', images: ['...'] } } in layout.tsx. Next.js Pages: use <Head> component from next/head. Astro: set them in the layout's <head> or use the built-in SEO props. Gatsby: use react-helmet or gatsby-plugin-react-helmet. React (SPA): use react-helmet-async. All frameworks ultimately output <meta property='og:...'> tags in the <head>.

Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →