Open Graph and Twitter card generator
Fill in a page's title, description, URL and image, and get the Open Graph and X (Twitter) card meta tags, escaped and ready to paste, with a live preview of the share card. Runs in your browser; nothing you type is sent anywhere.
Meta tags for <head>
Share card (LinkedIn, Facebook)
X card
What Open Graph and Twitter card tags do
When someone pastes a link into LinkedIn, Facebook, X, Slack, WhatsApp or a messaging app, the app reads a few meta tags from the page to build a preview: a title, a short description, an image and the site name. Open Graph tags, which start with og:, are the format most apps read. X has its own twitter: tags, and falls back to the Open Graph ones for anything missing. Without these tags, apps guess, and the preview often shows the wrong image, a cookie notice or nothing at all.
This generator builds the full set from one form, escapes quotes and angle brackets so a title such as The "best" tool cannot break your HTML, and previews the card as it will roughly appear.
The tags it writes
- og:title and og:description: the headline and the line under it. They can differ from your title tag and meta description; a share card can be shorter and more direct.
- og:url: the canonical address of the page, so likes and shares count toward one URL.
- og:image: the picture, as an absolute https URL. Once the image loads, the generator adds its width and height, which helps some apps show it on the first share.
- og:type and og:site_name: whether the page is a website, an article or a product, and your brand.
- twitter:card: the X card layout. summary_large_image shows a wide image above the title; summary shows a small square image beside it.
How to read the checks
Red lines are problems that stop a card from working, such as a relative image path or an image that does not load. Amber lines are improvements: a title over about 60 characters or a description over about 110 will be cut on most cards; an image under 1200 × 630 pixels may look blurry on large cards; an image far from the 1.91:1 ratio will be cropped. The previews are close to what the networks show, but each app has its own layout and changes it from time to time.
Common mistakes
- Relative image URLs. /images/card.png works in your HTML but not for an app fetching the tags. Always use the full https address.
- One image for every page. A logo on every share is easy to scroll past. A specific image per page gets more clicks.
- Blocking the image. If your CDN or firewall blocks unknown bots, the networks' preview fetchers may be refused. Check the image loads from outside your network.
- Forgetting the cache. Networks keep old previews. Re-scrape with their debug tools after a change.
Why share cards matter for SEO and AI search
Share cards do not change rankings directly, but they decide whether people click a shared link, and shares bring visits, mentions and links. AI assistants and their fetchers also read a page's title, description and Open Graph tags when they summarize a link, so clear tags help a page be described accurately. After you add the tags, confirm them on the live page with the free meta tag checker, preview your search result with the SERP snippet preview, and run the website SEO checker for the rest of the page. Then see whether ChatGPT and Gemini name your brand with a free AI visibility check.
Questions
What size should an Open Graph image be?
1200 × 630 pixels, a ratio of about 1.91:1, works on Facebook, LinkedIn and the large X card. Keep text and logos away from the edges, because some apps crop the image. The small X summary card shows a square crop and needs at least 144 × 144 pixels.
Do I need twitter: tags if I have og: tags?
X reads og:title, og:description and og:image when the twitter: versions are missing, but it needs twitter:card to choose the card type. Adding the twitter: tags too does no harm and makes the result predictable.
Why does my share card still show the old image?
Networks cache previews, sometimes for days. After you change the tags, ask the network to read the page again: LinkedIn's Post Inspector and Facebook's Sharing Debugger both do this on request. Changing the image file name also forces a fresh copy.
Can I validate a Twitter card here?
This tool checks the tags you build: lengths, absolute https URLs, the handle format, and the image size once it loads in your browser. To check the tags already on a live page, use the free meta tag checker.
Is anything I type sent to CiteGaps?
No. The tags and previews are built in your browser. The only request is your browser loading the image URL you enter, to show it and measure it, with no referrer sent.
See who AI recommends
in your market.
CiteGaps tracks your buyers' questions on ChatGPT, Gemini, Perplexity and Google's AI every week, and drafts the content that gets you named.
7-day free trial, no card · 7-day money-back guarantee · Cancel anytime