Open Graph Tags Generator
Generate Open Graph meta tags for social media
Input & options
Your inputs are never uploaded or stored.
Results
Enter your values to see the result.
About OG Tags Generator
The OG Tags Generator is a free online tool that creates optimized Open Graph meta tags and Twitter Card tags for your web pages. Open Graph (OG) tags are HTML meta elements that control how your content appears when shared on social media platforms like Facebook, LinkedIn, WhatsApp, Slack, and Discord. Properly configured OG tags can significantly boost click-through rates and social engagement.
This tool generates both Open Graph tags and Twitter Card tags simultaneously, ensuring your content looks great across every social platform. Simply fill in your page title, description, image URL, and other details, and the generator produces ready-to-paste HTML meta tags along with a live social media preview that approximates how your link will appear before publishing.
Supporting multiple content types including website, article, product, profile, video, music, and book, the generator also handles article-specific tags (author, section, published date) and product tags (price, currency, availability). That covers a blog post that needs its author and publish date in the markup and a shop page that needs price and stock status, not just a title and image.
Key Features
- Generate Open Graph meta tags and Twitter Card tags in one step
- Live social media preview approximating how your link will appear when shared
- Support for 7 content types: website, article, product, profile, video, music, and book
- Article-specific fields for author, section, tags, and publish/modify dates
- Product-specific fields for price, currency, and availability
- Twitter Card type selection: Summary and Summary Large Image
- One-click copy of all generated tags to clipboard
- Locale and site name configuration for complete OG compliance
- Clean, formatted HTML output ready to paste into your page head
- Nothing you enter is stored
How to Use
- Enter basic information: Fill in the title, description, URL, image URL, content type, and site name fields in the Basic Information section.
- Add type-specific details: If you selected "Article" or "Product" as the content type, fill in the additional fields that appear (author, price, etc.).
- Configure Twitter Card: Choose the Twitter Card type (Summary Large Image is recommended) and optionally enter your Twitter @username.
- Preview your share: Check the live Social Media Preview panel to see how your link will appear when shared on platforms like Facebook and LinkedIn.
- Copy the tags: Click "Copy All" to copy the complete set of Open Graph and Twitter Card meta tags to your clipboard.
- Paste into your HTML: Add the copied tags inside the <head> section of your HTML page, then test with the Facebook Sharing Debugger or the LinkedIn Post Inspector.
Use Cases
- Blog & article optimization: Generate OG tags for blog posts to ensure attractive previews with author attribution, category, and publish date when shared.
- E-commerce product pages: Create product-type OG tags with price, currency, and availability to drive clicks from social shares to your store.
- Marketing campaigns: Craft compelling titles, descriptions, and images for campaign landing pages to maximize social media click-through rates.
- Website launches: Set up proper OG tags for your homepage and key pages before launch to ensure a professional first impression on social platforms.
- Content management: Use the tool to standardize OG tag formatting across all pages of a multi-author website or blog.
- Developer implementation: Quickly generate properly formatted meta tag HTML without manually writing each tag, reducing development time and typos.
- Social media auditing: Preview how existing or planned content will appear when shared and optimize titles, descriptions, and images accordingly.
- Multi-platform consistency: Generate both OG and Twitter Card tags simultaneously to ensure consistent appearance across Facebook, Twitter, LinkedIn, and messaging apps.
Frequently Asked Questions
What is the recommended image size for OG tags?
Use images sized 1200 x 630 pixels for optimal display on Facebook and LinkedIn. Keep file sizes under 1MB for faster loading. Twitter recommends a 2:1 aspect ratio for Summary Large Image cards.
Do I need both OG tags and Twitter Card tags?
Twitter can fall back to OG tags if Twitter Card tags are not present, but including both ensures the best possible appearance on every platform. This tool generates both simultaneously.
How do I test my OG tags after adding them?
Use Facebook's Sharing Debugger (developers.facebook.com/tools/debug/) and LinkedIn's Post Inspector (linkedin.com/post-inspector/) to preview and troubleshoot your tags. X no longer offers a card preview in its Card Validator; the post composer shows the card once the URL is pasted.
Why does my shared link not show the updated image?
Social platforms cache OG data. After updating your tags, use Facebook's Debugger to scrape the page again and force a cache refresh. LinkedIn's Post Inspector re-fetches the page the same way.
Tips & Best Practices
- Keep titles under 60 characters: Longer titles get truncated on most social platforms. Write concise, compelling titles that convey the key message.
- Write descriptions of 150-200 characters: This range provides enough detail to entice clicks without being cut off in social media previews.
- Use absolute URLs: Always use full URLs (including https://) for og:url and og:image. Relative paths will not resolve correctly when shared.
- Choose eye-catching images: The og:image is the single most impactful element for social engagement. Use high-quality, relevant visuals that stand out in a busy feed.
- Select the right content type: Use "article" for blog posts, "product" for e-commerce pages, and "website" for general pages to help platforms categorize your content correctly.
- Test across platforms: Preview your tags on Facebook, Twitter, LinkedIn, and messaging apps to ensure consistent, attractive appearance everywhere.
Related tools
SEO- JSON FormatterFormat, validate and minify JSON; upload a file and choose 2, 4 or 8-space indentation.Developer
- Case ConverterConvert text to uppercase, lowercase, title case, sentence case, camelCase, kebab-case, or snake_case with a live result.Text
- Unit ConverterConvert length, mass, temperature, speed, and moreConversion
- Meta Tags GeneratorGenerate HTML meta tags for SEO optimizationSEO
- Disclaimer GeneratorGenerate medical/legal/financial or general disclaimersSEO
- Terms & Conditions GeneratorGenerate terms of service for your website/appSEO
- Hreflang Tag GeneratorGenerate hreflang tags for multilingual and multi-regional SEOSEO
- Robots.txt GeneratorCreate robots.txt files for search enginesSEO
- TikTok Hashtag GeneratorGenerate trending hashtags for TikTok videosSEO
- Schema Markup GeneratorGenerate structured data for rich snippetsSEO
- URL Slug GeneratorCreate SEO-friendly URL slugsSEO
- Privacy Policy GeneratorCreate a customized privacy policy compliant with GDPR/CCPASEO
Recently added
All tools- Keyboard TesterTest every key on your keyboard: see which keys work, how many register at once and which ones double-typeUtility
- Mic TestCheck that your microphone works: live level meter, waveform and a 5-second playback testRecording
- Morse Code TranslatorTranslate text to Morse code and back, play it as sound or light and download it as a WAV fileConversion
- Sound TestTest your speakers and headphones: left and right channels, a frequency sweep and a phase checkRecording
- Time Duration CalculatorHours and minutes between two times, durations added up, and a time plus or minus a durationConversion
- Webcam TestCheck your camera online: live preview, real resolution, measured frame rate and a snapshotRecording
- Internet Speed TestTest your download and upload speed, ping and jitter, and see what your connection can handleWeb
- Is It DownCheck whether a website is down for everyone or just for you, with status code and response timeWeb
- MAC Address LookupFind the manufacturer of any MAC address, one or hundreds at a time, and spot private addressesWeb
- SPF, DKIM & DMARC CheckerCheck a domain's email authentication: SPF, DKIM and DMARC records, with fixes for what is missingWeb
- Subdomain FinderFind the subdomains of any domain and see which are still live and where they pointWeb
- What Is My IP AddressSee your public IPv4 and IPv6 address, internet provider and approximate locationWeb