Open Graph Generator
Enter your webpage details below to generate complete Open Graph and Twitter Card HTML meta tags. Paste them into your site's <head> to ensure your links display high-converting image cards and rich titles when shared on Facebook, X (Twitter), LinkedIn, and Slack.
<!-- Open Graph / Facebook --> <meta property="og:type" content="website"> <meta property="og:url" content="https://thetextkit.com"> <meta property="og:title" content="TheTextKit: Free Online Text, Developer & Math Tools"> <meta property="og:description" content="Free online tools that run in your browser: word counter, JSON formatter, case converter, loan and percentage calculators and more. Nothing is uploaded."> <meta property="og:image" content="https://thetextkit.com/og-image.png"> <meta property="og:site_name" content="TheTextKit"> <!-- Twitter / X --> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:url" content="https://thetextkit.com"> <meta name="twitter:title" content="TheTextKit: Free Online Text, Developer & Math Tools"> <meta name="twitter:description" content="Free online tools that run in your browser: word counter, JSON formatter, case converter, loan and percentage calculators and more. Nothing is uploaded."> <meta name="twitter:image" content="https://thetextkit.com/og-image.png">
Related Tools
[6 suggestions]Meta Tag Generator
Generate the HTML head tags for a page: title, meta description, canonical, robots, charset and viewport.
SEO & MarketingSERP Preview Tool
Preview a title and meta description as a Google search result, with the title measured in pixels so wide letters are flagged.
SEO & MarketingUTM Link Builder
Live-generate URL tracking links with campaign source, medium, name, content, and term parameters.
SEO & MarketingURL Slug Generator
Transform article titles into clean, URL-friendly and SEO-optimized slugs.
Case & FormattingColor Converter and Contrast Checker
Convert a color between HEX, RGB and HSL, look up CSS color names, and check the WCAG contrast ratio of text on a background.
Developer & WebAspect Ratio Calculator
Find the aspect ratio of any width and height, resize while keeping it, and get the CSS aspect-ratio rule.
Developer & WebGuides for the Open Graph Generator
- How to Calculate Aspect Ratio and Resize Without Distortion
Learn how to calculate aspect ratio from a width and height, resize without distortion and use the CSS aspect-ratio rule. Checked in Python and Chromium. (November 14, 2026)
- Meta Tags for SEO: Which Ones Google Uses and Which It Ignores
Learn which meta tags matter for SEO: title, description, robots, canonical, viewport and charset. Plus the one Google ignores, and a check on 3,000 inputs. (November 10, 2026)
- SERP Preview: How to Check Your Title and Description Before You Publish
Use a SERP preview to see how your title and description may look in Google: pixel width, what gets cut, and when Google rewrites a title. Tested on 134 titles. (November 9, 2026)
- Schema Markup and JSON-LD: Examples and What Google Still Supports
JSON-LD schema markup examples for Article and Product, which types Google still shows, and the script tag mistake that breaks your code. (October 29, 2026)
About the Open Graph Generator
The Open Graph protocol (originally developed by Facebook) and Twitter Cards enable web pages to become rich objects in social network feeds. When a link is shared without OG metadata, platforms attempt to scrape the page automatically, often selecting irrelevant images or excerpting boilerplate header text. By embedding explicit og:title, og:description, og:image, og:url, og:site_name, and twitter:card tags in your document <head>, you control exactly how your brand is represented across social feeds and messaging apps. High-quality social card previews significantly increase click-through rates (CTR) from social channels. All tag generation occurs in real time in your browser without any network requests.
What is Open Graph and why does my website need it?▾
Open Graph (OG) is a protocol that allows web pages to control how their content appears when shared on social media platforms like Facebook, LinkedIn, Pinterest, and messaging apps like Slack and WhatsApp. Without OG tags, platforms display automated fallback previews that may look broken or missing images.
What image dimensions work best for Open Graph and Twitter Cards?▾
The recommended image size for og:image and twitter:image (summary_large_image) is 1200 x 630 pixels (1.91:1 aspect ratio). Keeping your image file size under 5MB ensures fast loading on mobile connections.
Do Twitter Cards require separate tags from Open Graph?▾
Twitter reads Open Graph tags as fallbacks, but explicitly including twitter:card, twitter:title, twitter:description, and twitter:image guarantees that X (Twitter) displays your chosen card layout correctly.
Should I fill in the image alt text, width and height?▾
Yes. The Open Graph protocol says a page that sets og:image should also set og:image:alt, a description of what is in the image. Facebook says og:image:width and og:image:height let its crawler show the image on the very first share without downloading it first. All three are optional here, and the tags are only written when you fill them in.
Are special characters in my title and URLs escaped?▾
Yes. Ampersands, angle brackets and double quotes in every value, including the image URL, are converted to HTML entities, so a title such as Q&A or an image URL with ?a=1&b=2 cannot break the tag.