Open Graph and Twitter Card Generator
Write Open Graph and X card tags, check the share image, and see the link preview in six apps before you publish.
Import tags from HTML
Paste the head of a page to load its Open Graph and X tags.
Close approximations. Each app crops and trims a little differently, and most cache a link for days.
Refresh the cache after you publish
How to use the Open Graph generator
Fill in the title, description, URL and image. The tags and six app previews update as you type.
- Write a title and a short description for the shared link.
- Add the page URL and the full address of a share image.
- Pick the content type. Articles, products and profiles get extra fields.
- Choose the X card size and add your X handles.
- Check the previews, then copy the tags into the head of the page.
The tool loads your image and reports its size and shape. If the image is too small or the wrong shape, you see it before anyone shares the link.
What are Open Graph tags?
Open Graph is a set of meta tags that controls how a link looks when someone shares it. Facebook created the protocol in 2010, and most apps now read it.
Without these tags, apps guess. They may pick a logo, a random image or the cookie banner text. With them, you choose the title, the description and the picture.
The tags that matter
| Tag | What it sets |
|---|---|
og:title | The headline of the card |
og:description | One or two lines under the headline |
og:image | The picture, as a full https address |
og:url | The address that likes and shares count against |
og:type | website, article, product and others |
twitter:card | Large or small image on X |
X reads the Open Graph title, description and image when its own tags are missing. So you only need the twitter:card tag and your handles on top.
The right share image
Use an image of 1200 × 630 pixels. That 1.91 to 1 shape works on Facebook, LinkedIn, X large cards, Slack and Discord.
- Keep text and faces near the centre, because some apps crop the edges.
- Keep the file under a few megabytes, so it loads quickly.
- Use a public https address. Images behind a login never appear.
- Add alt text for screen reader users.
How each app shows your link
Facebook and LinkedIn show a large image with the title below it. X shows the image with the title laid over it for large cards. WhatsApp shows a smaller preview in the chat bubble.
Slack and Discord show the site name, title, description and image in a side-bar card. The previews above copy each layout closely, but every app trims text a little differently.
Changes not showing up?
Apps cache link previews, sometimes for days. After you change your tags, ask the app to fetch the page again.
Use the Facebook Sharing Debugger or the LinkedIn Post Inspector, linked under the tool. For WhatsApp and Slack, adding a query string to the link, such as ?v=2, forces a fresh fetch.
Why this Open Graph generator is different
Many open graph tag generator tools leave out the image or show no preview at all. This one checks the image and shows the card in six apps.
- Previews for Facebook, X, LinkedIn, WhatsApp, Slack and Discord.
- An image check for size and shape.
- Extra fields for articles, products, profiles, books and media.
- Import from existing HTML, and checks for common mistakes.
It works as an open graph protocol generator, an OG meta tags generator and a social meta tags generator. It also covers the social media meta tags generator job for X cards. It even acts as a WhatsApp link preview generator.
Some search for an opengraph generator or an OG meta tag generator. Others want a social media meta tag generator. The tags it writes are the same standard set.
For the title tag and description that search engines use, try the Meta Tag Generator.
Private by design
The Open Graph generator runs in your browser. Nothing you type or paste is sent to a server, and there is no sign-up.
Your last settings are saved on this device only. The tool is ready when you come back.
Frequently asked questions
What is an Open Graph generator?
It writes the og: meta tags that control how a link looks when shared. You fill in a form and copy the code into the page head.
What image size is best for Open Graph?
1200 × 630 pixels, a 1.91 to 1 shape. It works on Facebook, LinkedIn, X large cards, Slack and Discord.
Do I need separate Twitter tags?
Only twitter:card and your handles. X reads the Open Graph title, description and image when its own tags are missing.
Why does my old image still show?
Apps cache previews. Use the Facebook Sharing Debugger or LinkedIn Post Inspector to fetch the page again.
Where do the tags go?
Inside the head of the page. Most CMSs and SEO plugins have fields for them.
What og:type should I use?
website for most pages, article for blog posts and news, and product for product pages.
Can I import my current tags?
Yes. Paste the page head into the import box to load its Open Graph and X tags.
Is this open graph tag generator free?
Yes. No sign-up, no limit, and it runs in your browser.
Last reviewed 2026-11-30 · How we build and check our tools