FormatterHQ

Open Graph & Twitter Card Preview

Paste a page’s <head> or its meta tags to preview the shared link on Facebook, X, LinkedIn, Slack and Discord, spot missing tags and copy a complete, corrected set.

Loading tool…
Ready.

How to use the Open Graph & Twitter Card Preview

  1. Paste your page’s HTML — the <head> is enough — or just the meta tags into the editor. A sample is loaded to start.
  2. Look at the previews for Facebook, X/Twitter, LinkedIn, Slack and Discord on the right.
  3. Work through the checklist: missing og:image, relative URLs, long titles and more.
  4. Copy the Complete tag set and replace the tags in your template.

Preview Open Graph and Twitter cards before you share

When a link is shared on social networks and chat apps, the platform reads the page's Open Graph (og:) and Twitter card meta tags to build a preview card. Missing or wrong tags lead to cards without images, cut-off titles or the wrong description. This Open Graph preview renders approximate cards for five platforms from the tags you paste, so you can fix problems before the link goes out.

The tags that matter

TagPurpose
og:titleCard headline; keep it under about 60–70 characters
og:descriptionOne or two sentences; most platforms show 150–200 characters
og:imageAbsolute URL; 1200 × 630 px (1.91:1) works everywhere
og:urlCanonical URL of the page
og:type, og:site_nameContent type (website, article) and your brand name
twitter:cardsummary_large_image for a big image, summary for a thumbnail

X/Twitter falls back to the Open Graph tags when its own twitter:title, twitter:description and twitter:image are missing, but it needs twitter:card to show a large image.

How the previews work

The tool parses the meta tags in your browser and draws each card in the approximate style of the platform — Facebook's grey caption bar, X's rounded card with the domain overlay, LinkedIn's title and domain, Slack's attachment block and Discord's embed. Platforms change their designs regularly, so treat the previews as a close approximation. The image is loaded directly from the URL in your tags; if it fails to load in the preview, it will probably fail on the platform too.

The checklist and fixed tag set

Below the editor you get errors (no image, relative image URL), warnings (missing og:title, og:description or og:url) and hints (long title, missing twitter:card or alt text). The Complete tag set merges what you have with sensible defaults — including og:image dimensions and twitter tags — ready to paste.

After updating your tags

Platforms cache previews. After deploying, ask them to re-scrape the page using Facebook's Sharing Debugger or LinkedIn's Post Inspector. Generate the base tags with the meta tag generator, check the search snippet with the SERP preview and create a 1200 × 630 test image with the placeholder image generator.

Platform differences at a glance

Facebook shows the domain in capitals above the title and truncates the description to one line; LinkedIn shows only the title and domain; X shows the image with a small domain label and the title underneath; Slack and Discord show the site name, title, description and a smaller image. That is why a strong og:title matters most — it is the one element every platform displays.

Privacy

Your HTML is parsed locally in the browser. Only the preview image is requested from the URL you provided, just as a social network would.

Frequently asked questions

What size should an og:image be?
1200 × 630 pixels (1.91:1) is the most widely supported size. Keep important content in the centre, as some platforms crop to a square.
Why does Facebook show an old image?
Facebook caches link previews. Use the Sharing Debugger to scrape the URL again after updating your tags.
Do I need both Open Graph and Twitter tags?
At minimum add og: tags and twitter:card. X falls back to Open Graph values for title, description and image.
Can I check a live URL instead of pasting HTML?
This tool works on pasted HTML so nothing is fetched on your behalf. Open your page, view the source, and paste the section.
Why is my og:image not showing?
Common reasons are a relative URL, a blocked or private image, an unsupported format or a file that is too large. Use an absolute https URL to a JPG or PNG under a few megabytes.

Last updated September 26, 2026

Related tools

SERP Snippet Preview & Meta Length Checker Check title tag and meta description length in pixels and characters and preview your Google search result on desktop and mobile. Bar Graph Maker Make bar charts online from CSV or JSON. Grouped bars for multiple series, negative values, custom colours and SVG export. Line Graph Maker Create line graphs online from CSV or JSON data. Multiple series, axis labels, custom colours and free SVG download. JSON Graph Visualizer Visualize JSON data as a graph of connected nodes. See objects, arrays and values as a diagram of linked boxes with size badges. Robots.txt Generator Create a robots.txt file: allow or block paths, block AI crawlers and specific bots, set crawl-delay and add your sitemap URL. UTM Campaign URL Builder Build Google Analytics campaign URLs with utm_source, utm_medium, utm_campaign, utm_term and utm_content, consistently formatted. XML Sitemap Generator Turn a list of URLs into a valid sitemaps.org XML sitemap with optional lastmod, changefreq and priority — ready for Search Console. Hreflang Tag Generator Generate hreflang annotations for multilingual sites as <link> tags, sitemap entries or HTTP headers, with code validation. .htaccess Redirect Generator Generate Apache .htaccess 301/302 redirects from old → new URL pairs, plus force-HTTPS, www and trailing-slash rules. Meta Tag Generator Generate SEO meta tags for your page head: title, description, keywords, robots, canonical, Open Graph and Twitter cards. Angular Formatter Format Angular component templates with structural directives, bindings and pipes. Area Chart Maker Create area charts online from CSV or JSON data: filled line graphs with multiple series, smooth curves and SVG export.