Social Card Preview Widget
Add a social card previewer to your marketing or web-publishing guides. Readers enter a title, description, URL and image, pick a local image to see it in place, and get the Open Graph and Twitter Card tags to paste into their page.
Live preview
Exactly what your visitors will seeUnder the widget on your page: Powered by A2Z Tools
Embed code
<iframe src="https://a2z.tools/embed/w/social-card-preview" title="Social Card Preview by A2Z Tools" width="100%" height="1170" style="border:0;width:100%" loading="lazy" allow="clipboard-write"></iframe>
A plain iframe. Works everywhere, including site builders that strip scripts. Adjust height if your content needs more room.
<div data-a2z-widget="social-card-preview" data-height="1170"></div> <script async src="https://a2z.tools/embed.js"></script>
Adds a small script (what it does) that sizes the widget to fit its content, loads it lazily and keeps it isolated from your page's CSS.
Works with
How it works
When a link is shared, Facebook, LinkedIn and X build a card from the page's Open Graph tags (og:title, og:description, og:image) and X's twitter:card tags. The widget lays the entered text out in the style of each platform's card, truncating long titles and descriptions the way the platforms visually do, and writes the matching meta tags with every value HTML-escaped. For privacy and security the embedded frame loads no images from other sites, so to see an image in the card the reader picks a file from their device; it is displayed through a temporary local URL. The image URL field is used only in the generated tags.
Method
- Tags: og:type, og:title, og:description, og:url, og:site_name, og:image, twitter:card, twitter:title, twitter:description, twitter:image
- twitter:card = summary_large_image when an image URL is given, else summary
- Card image area 1.91:1 (1200 x 630 px recommended); text clamped to 1-2 lines
- Length hints: title up to ~70 characters, description up to ~200
Limitations
- Layouts are approximations of each platform's current card; WhatsApp, Slack, Discord and Pinterest previews are not drawn.
- It cannot tell you what a platform has cached for your URL; use each platform's debugger to refresh a stale card.
- No check that the og:image URL exists, is publicly reachable or meets size limits, because the frame fetches nothing.
- Only the common tags are generated; og:locale, image width/height, article:* and product:* tags must be added by hand.
Where publishers use it
- Tutorials on adding Open Graph tags to WordPress, Shopify or static sites
- Social-media marketing guides about link previews
- Developer docs for teams building share pages
- Newsletter and PR guides explaining why a shared link shows the wrong image
Questions
Why can't the widget load my image URL?
The embedded frame blocks third-party images so it cannot be used to track visitors or load hostile content. Choose the image file from your device to preview it.
What image size should I use?
1200 x 630 pixels (1.91:1) works for Facebook, LinkedIn and X large cards. Keep important content away from the edges because platforms crop differently.
I updated my tags but the old card still shows.
Platforms cache cards. Use Facebook's Sharing Debugger or LinkedIn's Post Inspector to refresh them.
Is the preview exactly what each platform shows?
It is an approximation. Platforms change their layouts and truncation often.
Sources
- The Open Graph protocol - ogp.me (Facebook) . og:title, og:type, og:image, og:url, og:description, og:site_name
- Cards markup reference - X Developer Platform . twitter:card values and fallback to Open Graph tags
Cite or recommend this tool
If you reference this tool in an article, course or documentation, these formats are ready to copy. They are optional - nothing is added to your site unless you paste it.
A2Z Tools Social Card Preview https://a2z.tools/social-card-preview
<a href="https://a2z.tools/social-card-preview">A2Z Tools Social Card Preview</a>
[A2Z Tools Social Card Preview](https://a2z.tools/social-card-preview)
Social Card Preview by A2Z Tools - https://a2z.tools/social-card-preview
Related widgets
-
Preview a title, URL and meta description as a Google-style result, with pixel-width estimates.
-
Turn a title into a clean URL slug: accents transliterated, optional stop-word removal and length cap.
-
Words, characters, sentences, paragraphs, reading time and social-media character limits.
-
Top one-, two- and three-word phrases in a text with counts and density, plus a focus keyword.
-
Check whether a robots.txt allows a crawler to fetch a URL, and which rule decides it (RFC 9309).
-
Reading and speaking time for a word count or pasted text, at research-based reading speeds.