Open Graph Preview
See how a link will look when shared on Facebook, LinkedIn and X, catch missing images and long titles, and copy the meta tags.
Or paste existing meta tags
Approximate layouts. Each platform cuts text by pixel width and changes its card design from time to time, so check the live result with the platform's own sharing debugger.
What Open Graph tags do
When someone shares a link, the platform fetches the page and looks for Open Graph tags in its head to build the preview card: a title, a short description, an image and the site name. Open Graph is a protocol Facebook introduced in 2010, and it is now read by LinkedIn, Slack, Discord, WhatsApp, iMessage and many other apps.
X (formerly Twitter) reads its own twitter: tags first and falls back to Open Graph for most of them. Without any of these tags, platforms guess: they may pull the page's title tag, the first paragraph and a random image, or show only the bare URL. The tags are the difference between a card that invites a click and one that looks broken.
Key takeaways
- og:title, og:description, og:image and og:url cover almost every platform.
- og:image must be a full URL starting with https://. Relative paths are not fetched.
- Put the point of the title in the first 60 characters or so; longer titles are often cut short.
- Add twitter:card to choose between a large image and a small square thumbnail on X.
- Platforms cache previews. After changing tags, use the platform's own debugger to refresh them.
The tags this tool generates
For a guide page with an image, the tool outputs:
<meta property="og:type" content="website">
<meta property="og:title" content="Wet-Weather Trail Shoes: What Matters">
<meta property="og:description" content="Grip, drainage and fit tested over a winter of muddy runs.">
<meta property="og:url" content="https://www.example.com/guides/wet-weather-trail-shoes">
<meta property="og:site_name" content="Example Outdoors">
<meta property="og:image" content="https://www.example.com/img/trail-shoes.jpg">
<meta property="og:image:alt" content="Muddy trail shoes on a rock">
<!-- X (Twitter) card -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Wet-Weather Trail Shoes: What Matters">
<meta name="twitter:description" content="Grip, drainage and fit tested over a winter of muddy runs.">
<meta name="twitter:image" content="https://www.example.com/img/trail-shoes.jpg">
<meta name="twitter:image:alt" content="Muddy trail shoes on a rock">
Open Graph tags use the property attribute; X card tags use name. Empty fields are left out, and quotes, ampersands and angle brackets in your text are escaped so they cannot break the tag. The twitter:title, description and image lines duplicate the Open Graph values. X would fall back to the og: tags without them, but including them makes the card independent of that fallback.
| Tag | What it sets | Notes |
|---|---|---|
| og:title | Card headline | Can differ from the page's title tag; write it for people scrolling a feed |
| og:description | One or two lines under the title | Many cards show little or none of it, so lead with the point |
| og:image | The picture | Full https:// URL; a wide image around 1.91:1, such as 1200 x 630 pixels, suits large cards |
| og:image:alt | Alt text for the image | Read by screen readers on platforms that support it |
| og:url | The canonical address | Shares of variant URLs are credited to this one |
| og:site_name | Brand shown with the card | Your site or publication name |
| twitter:card | X card layout | summary_large_image for a wide image, summary for a small square thumbnail |
Where text gets cut
Cards have limited room, so platforms cut long titles and descriptions with an ellipsis. They cut by pixel width rather than by character count, and they change their designs, so no fixed number is exact. The previews use typical character limits to show roughly where text will break: about 88 characters for a large card title, 70 for an X large-image card and 55 for an X summary card.
Here is an 81-character title run through each preview:
| Card | Approximate limit | Shown as |
|---|---|---|
| Facebook / LinkedIn style large card | 88 | Trail Running Shoes for Wet Weather: What Actually Matters on Muddy Winter Trails |
| X large image card | 70 | Trail Running Shoes for Wet Weather: What Actually Matters on Muddy... |
| X summary card | 55 | Trail Running Shoes for Wet Weather: What Actually M... |
The same title also triggers the long-title warning, which appears above about 60 characters.
The lesson is the same as for search result titles: put the words that matter first. A title that front-loads its subject still makes sense when the last third is cut off.
The image matters most
The image takes up most of a large card, so it does most of the work. Without og:image, most platforms show a small card or no picture at all, and the tool warns you. It also warns when the image is a relative path such as /img/card.png, because the platform's crawler fetches the image on its own and needs the full address.
- Use a wide image for large cards. A ratio around 1.91:1 avoids heavy cropping; keep important content away from the edges.
- Serve it over https and make sure it is publicly reachable, not behind a login or blocked by robots.txt.
- Keep text in the image large, or leave it out. Cards are often seen at thumbnail size on phones.
- Add alt text with og:image:alt, so the card is useful to people using screen readers.
- Think about the summary card. It shows the image as a small square, so choose a picture that still works cropped to its center.
Checking an existing page
Open the page, view its source, copy the head section and paste it into the Or paste existing meta tags box. Click Read tags and the tool fills the fields. Open Graph tags take priority, then twitter: tags, then the plain title tag, meta description and canonical link, which is roughly the order platforms fall back through.
The pasted markup is read with the browser's DOMParser into a detached document. Its scripts do not run and its images do not load; the tool only reads the meta, title and link elements. It does not fetch the live page, so it shows exactly what you pasted. To see what a platform actually cached, use that platform's own sharing debugger, which also forces a fresh fetch after you change your tags.
Frequently Asked Questions
What are Open Graph tags?
Meta tags in a page's head that tell social platforms and messaging apps what title, description, image and site name to show when the page is shared. The protocol was introduced by Facebook and is now read by LinkedIn, Slack, WhatsApp, X and many others.
Do I need both Open Graph and Twitter tags?
Open Graph tags cover most platforms, and X falls back to them for title, description and image. You need twitter:card to choose the X card layout. Adding twitter:title, twitter:description and twitter:image as well makes the X card independent of the fallback.
What size should my og:image be?
A wide image with a ratio around 1.91:1, such as 1200 x 630 pixels, is the common choice for large cards. Keep important content near the center, because some placements crop the edges or show a square thumbnail.
Why does my shared link still show the old image?
Platforms cache link previews. After changing your tags, run the URL through the platform's own sharing debugger or post inspector, which fetches the page again and refreshes the cached card.
How long should an Open Graph title be?
There is no fixed limit, but cards cut long titles by pixel width. Around 60 characters or fewer is a safe target, with the most important words first. The tool warns above 60 and shows where each card style is likely to cut.
Are the previews exactly what Facebook, LinkedIn and X show?
No. They are close approximations of typical layouts. Each platform measures text in pixels, adapts to the device and changes its designs over time. Use the previews to catch problems, then confirm with the platform's own debugger.
What is the difference between summary and summary_large_image?
summary shows a small square thumbnail beside the title. summary_large_image shows a wide image above or behind the title and takes up much more of the feed. Use the large card when you have a good wide image.
Does this tool fetch my page?
No. It works only from what you type or paste. Pasted HTML is read in an inert document where scripts never run. The only request it makes is your browser loading the image URL you enter, so you can see it in the preview.
Can og:image be a relative path?
No. Use a full URL starting with https://. The platform's crawler fetches the image separately and does not resolve paths like /img/card.png against your page, so a relative path usually means no image.