Open Graph Tag Generator

Generate social media preview meta tags for your website. Fill in the details below and get ready-to-use OG meta tags instantly.

Page Information

0/100 characters (recommended: 40-60)
0/300 characters (recommended: 150-200)

Generated Meta Tags

Social Media Preview

No image preview
Your page title
Your page description will appear here...
example.com

HTML Code — Copy this into your <head> section

How It Works

This tool constructs Open Graph meta tags by mapping your input fields to the standard OG property names recognized by social media crawlers. Each tag follows the format <meta property="og:KEY" content="VALUE">. The generator validates URLs, calculates optimal character lengths (titles: 40–60 chars, descriptions: 150–200 chars), and also produces Twitter Card equivalents so your links render correctly on both Facebook/LinkedIn and Twitter/X. The preview card simulates how your shared link will appear, giving you visual feedback before publishing.

Frequently Asked Questions

What are Open Graph tags and why do I need them? +
Open Graph tags are meta tags placed in the <head> of your HTML that control how your page appears when shared on social media platforms like Facebook, LinkedIn, and Twitter. They define the title, description, image, and URL that appear in the link preview card, helping your content look professional and encouraging clicks.
What is the recommended image size for Open Graph tags? +
The recommended Open Graph image size is 1200 × 630 pixels with an aspect ratio of approximately 1.91:1. The minimum size Facebook accepts is 600 × 315 pixels. For best results, use a JPG or PNG file under 300KB. Twitter cards also use this same size for summary_large_image cards.
Do Open Graph tags work on all social media platforms? +
Open Graph tags were originally created by Facebook but are now used by most platforms including LinkedIn, Pinterest, and others. Twitter uses its own Twitter Card tags but will fall back to Open Graph tags if no Twitter-specific tags are found. For best results across all platforms, include both OG tags and Twitter Card tags.

Related Tools

Copied to clipboard!