Open Graph Generator
Generate Open Graph and Twitter Card tags so your links look great when shared on social media, with a live preview.
What the nine tags contain
Four fields (title, description, URL and image URL) feed nine tags. Five are Open Graph tags, read by Facebook, LinkedIn, Slack, WhatsApp and most other apps that unfurl links. Four are Twitter Card tags for X.
| Tag | Value |
|---|---|
| og:type | always website |
| og:title, twitter:title | Title field |
| og:description, twitter:description | Description field |
| og:url | URL field |
| og:image, twitter:image | Image URL field |
| twitter:card | always summary_large_image, the large-image card |
The text goes into the tags exactly as typed, with no escaping. Keep straight double quotes out of the title and description, or change them to " after copying, or the tag will cut off at the first one.
Getting the image to appear
The card above the code loads your image URL in your own browser, inside a wide 1.91:1 frame. If the frame stays empty, the address is wrong, so fix that first.
A picture in the preview doesn't prove that social platforms can fetch it, though. Their servers request the image themselves, so the URL must be:
- a full address starting with
https://, not a path like/images/card.jpg; - public, not on a staging server behind a password or on
localhost, both of which you can see and they can't; - not blocked by your robots.txt;
- a real image file, not a page that shows the image.
The image field starts as https://example.com/og.jpg. If you forget to change it, every share shows a broken image.
Change og:type for articles
The generator always writes og:type as website. That suits a home page, a tool or a landing page. For a blog post or a news story, change it to article after copying:
<meta property="og:type" content="article" />
Make the og:url the page's own address, not your home page. Platforms use it to group shares of the same page, so a home-page URL on every article merges them all into one.
When a platform keeps showing the old preview
Platforms store a copy of a page's preview the first time someone shares it. Fix a title or swap the image afterwards and the old card can keep appearing.
Some platforms offer an inspector that fetches the page again. Facebook's Sharing Debugger and LinkedIn's Post Inspector both refresh their stored copy when you submit the URL. If an image still won't update, upload it under a new file name and point og:image at the new address, which forces a fresh download.
Frequently asked questions
Do I need both the og: tags and the twitter: tags?+
X reads its own twitter: tags first. The twitter:card line is the one that matters most, since it chooses the large-image layout. Keeping all nine is simplest and costs nothing.
Can the social title be different from my page title?+
Yes. The title tag is written for search results, while og:title is what people see in a feed. A shorter, more conversational title often works better there. Just keep it accurate to the page.
Does the preview show exactly what Facebook or LinkedIn will display?+
No. It's a generic card with the image, domain, title and description. Each platform crops, truncates and lays out cards in its own way, so check with that platform's inspector before a big launch.
Embed this tool on your website
Free to use on blogs, school sites and intranets. Paste this code into your page's HTML; please keep the credit line.
<iframe src="https://utilityapp.lat/embed/seo/open-graph-generator" title="Open Graph Generator" width="100%" height="600" style="border:0;max-width:760px" loading="lazy"></iframe> <p style="font-size:13px"><a href="https://utilityapp.lat/seo/open-graph-generator">Open Graph Generator</a> by UtilityApp</p>