Open Graph Generator
Four Tags Decide Your Card
This Open Graph tool will create the og: section used to work out what your link looks like when it is displayed in a chat window, a social media feed or as part of a message. The tool will highlight each of the four required elements, and give a preview of the card while you enter the data.
- FreePrice
- 4Required tags
- NoneSign-up
- NoneUploads
Open Graph Generator
The og: tags behind every link preview
Ready. The four required tags are marked as you fill them in.
Run it on a test page before the live one
Keep a copy of your original code and try the result on a test page before you replace the live file. No automatic tool can see every way your site uses its code.
Guides for this tool
Articles with worked examples, tables and a short video that help you get more from this tool.
Open Graph TagsOpen Graph tags explained: every key tag, image size rules, and how to add and test them.
9 minutes of reading · video guide inside
The Parts of a Share Preview Open Graph Decides
Paste a link into a chat and something happens. A picture appears, a headline, a line of text, and the name of the site.
The card is based on tags in your head element. If there are none, the app makes an estimate, and the estimate is usually your logo and your navigation.
Facebook released the protocol in 2010, which was then adopted by other organizations. Now, LinkedIn, WhatsApp, Slack, Discord, Signal, and Telegram are using those same four characteristics.
The protocol itself defines these: og:title, og:type, og:image and og:url. The remaining tags listed are optional additions.
The Picture Carries the Entire Preview
A photograph card needs much more room than a plain card. So, the picture is the primary label you want to make sure is done correctly initially.
So use 1200 by 630 pixels, which is the 1.91 to 1 shape every network crops to. Then keep the file under about five megabytes, and always use an absolute https address.
Text inside the image gets cropped on small cards. Put the words in og:title instead, where they stay readable at any size.
Property, Not Name
Open Graph tags go in the property attribute, whereas Twitter tags go in name. So if you copy a tag from the wrong example, the network quietly ignores it.

The difference comes from RDFa, which Open Graph is built on. It looks like a detail, and it explains half of all broken cards, as the meta element reference sets out.
This open graph tag generator will write every tag with its correct attribute so you don’t have to worry about the differences between them.
Types Beyond Website
The most pages on the Internet are websites. An article includes an author and the date of publication, while a product may include a cost, and a user’s page includes a name. Select the page type you wish to view, and then ignore the others.
Why Your Card Will Not Update
Social media platforms store info that was collected from other sources, often for several days. After you update your tags and post your link again, the previous tag will appear.

All networks have a debugging tool that causes a force-refresh, which is the only effective way to fix the problem. Facebook, LinkedIn, and X are among those that offer this service.
So, make sure you put your tag on before launching, not afterwards. A card that is cached on the day of a campaign will take time to resolve.
Descriptions On A Card Behave Differently
A search description is one of ten competing for attention. A card description is part of the entire feed, but has limited space to compete against everything else.

A single sentence is enough since most networks display about two rows of text on a cell phone. A second sentence, if too long, will usually be cut off.
Say what the link gives instead of what is on the page. Since a card has no query behind it, there is no indication as to why anyone would want to know.
Then have the title bear the brunt. At other times, on a short card the description may disappear completely.
One Block Serves Every Network
When Twitter doesn’t find its own tags, it will use the og: tags. In fact, most platforms do this. Just write your Open Graph tags first and then put in one twitter:card tag and you’re good.
See the Open Graph Generator at Work, Start to Finish
This brief video shows each step from start to finish. Choose your language below, and switch on captions if they help.
Building Social Previews With The Open Graph Generator
Four steps, and the notes panel tracks the required four as you fill them in.
Pick the type
Website covers most pages. Choose article for a blog post, and two extra fields appear for the author and the date.
Give the preview its own headline
Up to 70 characters will display completely. This can be different than your page title (and it most likely will be) since cards don’t have search queries attached to them.
Add the image and the address
Both must have complete https URLs. You will be able to see the results of the 1.91:1 cropping on the preview of the image, showing how much space a thin card needs.
Paste the block and re-scrape
Make sure you have put it into your brain, and then run the URL through every network debugger. If you don’t do this, a cached card may remain on your system for weeks.
What Sets This Open Graph Tool Apart
The most generators produce all properties specified. This generator writes the required elements of a card and finds those that are absent.
It tracks the required four
The title, type, image, and url of each item have to be noted down before being filled out. No other items pretend to be required.
A live card preview
You see the crop shape and the cut lengths as you type, since that is where most cards go wrong.
Correct attributes throughout
The most frequent broken card is the result of people putting their OG: tags on "property" instead of "name."
No duplicate Twitter block
Twitter reads the og: tag and checking the box only adds the twitter:card tag and an alt tag for your image. Adding two of anything does not help anyone.
Article fields when you need them
Author and published time appear for articles, and stay hidden otherwise. After all, a form full of irrelevant fields invites wrong answers.
Nothing leaves your tab
Unreleased campaigns’ copy goes through here. Because the page does not fetch anything (i.e. address, headline), there will be no way for that info to reach any server.
Rules For Cards That Look Right
Cards tend to break in a few predictable ways. Each rule below shuts one of them down.
- Give the image as a full https address. Most networks don’t care about relative paths and non-ssl HTTP. A web scraper is not a browser, so there isn’t any "page" that will help it figure out what a relative path means.
- Size the picture at 1200 by 630 pixels. The image size that all networks crop to is the original image size. If you use a smaller image, then it will either appear as a tiny square card, or not at all.
- Keep key text out of the picture. Crops cut the edges off of the image, while smaller images reduce the size of the overall picture. Words belong in "og:title" so that they remain readable.
- Write a card title, not a page title. Title of search results corresponds to what the user entered. Card titles need to stand alone, in a feed, next to other content that is also trying to get the attention of the reader.
- Point og:url at the canonical address. Shares continue to be attributed to the same URL. So, if the URL is different from the preferred canonical tag, then there will be a split in share count on both versions of the page.
- Add og:image:alt. A screen reader can say the text from the image rather than the image itself, and it only needs one line. While most websites do not use this, it is an insufficient reason to not do so.
- Ask the platform to fetch the page again after every edit. Network aggressive caching. Until you do a refresh on the page, the old card is what everyone sees.
- Add og:site_name too. The publication name is next to the headline using og:site_name. That single line of text can be just as important as the title itself in a busy feed.
- Test on a phone. Most users click through links from their chat apps using small screens. This allows for a much more lenient desktop preview.
Six Open Graph Mistakes That Break Cards
Every single one of those creates a page that operates correctly, and a link that appears to be non-functioning.
Writing name where property belongs
Open Graph tags need the "property" attribute. Without it, the tag will be valid HTML, but it will be ignored by Open Graph.
A relative image path
The card will arrive without a picture because the scraper does not have anything to resolve itself against.
Tags added by JavaScript
Most scrapers read the HTML as served, and run nothing. So tags injected after load stay invisible to them.
A preview image that needs a login
A staging password or hotlink rule has blocked the scraper, so the card will fall back to using plain text.
Two og:image tags
Theme sets the first, and then the Plugin sets the Second. Networks select one, but usually not the one you would have preferred.
Expecting an instant update
Caches are effective for a few days; so, use each network debugger on the link, instead of just sharing it over and over again.
Open Graph Questions People Ask
Which Open Graph tags does a card need?
Just four are necessary: og:title, og:type, og:image and og:url. Those are considered the base metadata by the protocol, and a card with no image will be significantly smaller than one with.
Which og:image size shows best on Facebook and LinkedIn?
Choose 1200 by 630 pixels, the 1.91:1 shape social networks crop to. Keep it under five megabytes and serve it over https.
Should I add Twitter tags on top of Open Graph?
Twitter uses only the "twitter:card" tag and an optional "image alt" tag. When Twitter does not find its own tags, it reads "og:title," "og:description," "og:image," and "og:url."
Why has my card not changed?
Since the old page was cached, use the debug tool on the network to force another crawl of the page. Usually when you share a link, it will serve up the cached version.
Will Open Graph tags lift my search rankings?
No, not directly. It does affect the click-through rate of links that are shared on social media platforms, and Google has stated that they could potentially use the og:title tag as a factor in determining whether or not to rewrite a title link.
Can I use an open graph tag generator output on any platform?
Yes. The same block works with Facebook, LinkedIn, WhatsApp, Slack, Discord, Telegram and Signal, since each of these applications uses the same protocol.
Which part of my HTML should hold these Denwix tags?
Next to the other meta tags you have listed in your document’s head section. The order of these meta tags doesn’t matter, but, it will make it much simpler to check for accuracy at a later time if they are all grouped together.
What happens if I set no og tags at all?
The network guesses from your page. Usually that means your logo, a navigation heading and the first sentence it finds, which rarely sells the link.
Can different pages share one image?
They can, and a site-wide fallback is better than nothing. A page with its own image still earns more clicks, so use the fallback only where no specific image exists.
Does anything I type into this Denwix tool leave my device?
No. The tags are written by your browser, and the page does not fetch any addresses. No info is stored on this website and no data is logged.
Tools For Shared Links
A card is made of tags and an image. The three below handle both parts.
- Twitter Card Generator
The twitter: tags, and only the ones with no og: equivalent.
- Image Converter
Turn a card image into WebP, JPG or PNG in your browser.
- Meta Tag Generator
The head tags that sit beside your og: block.
Ready to Fix Your Link Preview?
Fill in the four fields, view the preview, then copy and paste the code into your section. This is a free tool for creating open graph tags, which does not need an account and is hosted completely within your web browser.