Tools

Website SEO AuditBroken Link CheckerSchema Markup ValidatorAI Crawler CheckerInternal Link CheckerKeyword Cannibalization CheckerKeyword ClusteringKeyword SuggestionsKeyword GapWord CounterSEO Content CheckerReadability CheckerKeyword DensityAI HumanizerWriting Pattern IndicatorLong-Tail Keyword IdeasSERP Snippet PreviewMeta Tag GeneratorURL Slug GeneratorRobots.txt GeneratorMeta Title GeneratorMeta Description GeneratorOpen Graph GeneratorTwitter Card GeneratorHTML Meta TagsMeta Tags for WordPressMeta Tags for ShopifyMeta Tags for BloggerMeta Tags for WebflowMeta Tags for ReactMeta Tags for Next.jsCore Web Vitals CheckerImage CompressorHTML MinifierCSS MinifierJavaScript MinifierVideo & Image SpecsQR Code GeneratorMerge PDFSplit PDFRotate PDFDelete PDF PagesRearrange PDF PagesExtract PDF PagesCrop PDFJPG to PDFPNG to PDFPDF to JPGPDF to PNGResize ImageCrop ImageImage ConverterWebP to JPGHEIC to JPGProfile Photo MakerImage to Text (OCR)MOV to MP4MKV to MP4WebM to MP4AVI to MP4MP4 to MP3Extract Audio from VideoTrim VideoMute VideoVideo to GIFResize VideoCompress VideoM4A to MP3WAV to MP3OGG to MP3AAC to MP3Split CSVSplit ExcelCSV to ExcelExcel to CSVExcel to XMLXML to ExcelXML to CSVXML to JSONJSON to CSV
Guides4 min read

Open Graph Builder – A Simple Guide to Social Tags

Learn what an Open Graph builder does, how to set up preview tags for social platforms, and see clear examples to fix broken link previews.

You can use an open graph builder to generate the HTML meta tags that control how your pages look when shared. Instead of letting social networks and messaging apps guess your preview image and text, the tool creates clean code you can paste straight into your header.

When someone pastes your link into Facebook, LinkedIn, Threads, or Slack, the platform scrapes your page for Open Graph tags. If those tags are missing or broken, things look messy. You might see an awkward thumbnail, random body text, or a blank gray box.

The Core Open Graph Tags

Facebook rolled out the Open Graph protocol in 2010. Today, it's the standard for almost every social and chat app. You'll find dozens of optional tags, but most sites only need four core tags for clean, professional link previews:

TagPurposeExample Value
og:titleThe headline shown in the social card."How to Bake Sourdough Bread"
og:descriptionA 1–2 sentence summary beneath the title."A beginner's step-by-step guide to baking sourdough at home."
og:imageThe absolute URL to the featured preview image.https://example.com/images/bread.jpg
og:urlThe canonical URL of the shared page.https://example.com/sourdough-guide
og:typeThe category of your content (website, article, etc.).article

Why Twitter (X) Tags Matter Too

Twitter reads Open Graph tags as a backup, but it also supports its own twitter: tags. If you want a full-sized image card on X instead of a small square thumbnail, add these as well:

  • twitter:card (usually set to summary_large_image)
  • twitter:title
  • twitter:description
  • twitter:image

A good open graph builder usually creates both sets together. That way, you don't have to duplicate your work by hand.

Open Graph Examples

Looking at these tags in raw HTML helps you see what an open graph builder creates behind the scenes.

Example 1: A Standard Blog Post

When you write a typical blog post, you’ll want an article type tag. Add clear text and a high‑resolution preview image.

<meta property="og:type" content="article">

<meta property="og:title" content="10 Essential Tools for Remote Freelancers">

<meta property="og:description" content="Discover the best time tracking, invoicing, and productivity tools to run your freelance business smoothly.">

<meta property="og:url" content="https\://example.com/blog/freelance-tools">

<meta property="og:image" content="https\://example.com/assets/freelance-tools-card.png">

<meta property="og:image:width" content="1200">

<meta property="og:image:height" content="630">

<!-- Twitter Card fallback -->

<meta name="twitter:card" content="summary_large_image">

<meta name="twitter:title" content="10 Essential Tools for Remote Freelancers">

<meta name="twitter:description" content="Discover the best time tracking, invoicing, and productivity tools to run your freelance business smoothly.">

<meta name="twitter:image" content="https\://example.com/assets/freelance-tools-card.png">

Example 2: A Homepage or Landing Page

For homepages, the og:type normally uses website.

<meta property="og:type" content="website">

<meta property="og:title" content="CraftRoast | Specialty Single-Origin Coffee">

<meta property="og:description" content="Freshly roasted specialty coffee delivered straight to your door every month.">

<meta property="og:url" content="https\://example.com/">

<meta property="og:image" content="https\://example.com/assets/craftroast-social.jpg">

Common Mistakes When Setting Up Open Graph Tags

A tiny syntax mistake can make social sites show a blank preview. Watch out for these common pitfalls:

  • Using relative image URLs: Social scrapers can't read relative links like /images/preview.jpg. Always provide the full absolute URL, including the protocol (like https://example.com/images/preview.jpg).
  • Wrong image dimensions: The best size for large social cards is 1200 × 630 pixels (a 1.91:1 ratio). If your image is smaller than 600 × 315 pixels, platforms will show a tiny square thumbnail next to your text instead of a full-width card.
  • Forgetting image file size limits: Keep your preview images under 5 MB, and ideally under 1 MB. If a scraper takes too long to download the file, it'll time out and show nothing at all.
  • Using name instead of property: Standard meta tags use <meta name="description" ...>, but Open Graph tags need <meta property="og:title" ...>. Mixing up name and property can confuse parsers.
  • Ignoring caching issues: Social networks cache scrape results. If you update your tags and share the link right away, you might still see the old card. Use platform debug tools (like Facebook's Sharing Debugger) to force a refresh.

Try It with a Free Tool

Writing these tags by hand for every page invites typos and missing attributes. Using an open graph builder simplifies your workflow: just fill out a quick form and copy the output.

If you need a fast way to build your tags, you can use our free open graph generator. Enter your page title, description, and image link. The tool outputs formatted tags ready to paste into your <head> section.

If you want to set up your standard SEO meta tags and social tags at the same time, check out the broader meta tag generator.

Setup can differ slightly depending on your website platform. For example, if you run your site on a visual CMS, our guide on meta tags in Webflow shows you where to paste these fields dynamically across blog collections and static pages.

FAQ

What happens if I do not add Open Graph tags?

If you skip Open Graph tags, platforms will still try to build a preview card. They usually pull text from your standard <title> and <meta name="description"> tags, then scrape whatever image appears first on the page. That often leaves you with distorted logos, ad banners, or no image at all.

Stick with the standard 1200 × 630 pixels. That size keeps images crisp on high-density displays like Retina screens. It also fits the 1.91:1 aspect ratio expected by Facebook, LinkedIn, and X.

Does adding Open Graph tags improve Google search rankings?

Google Search doesn't use Open Graph tags as a direct ranking factor. Still, they help your site indirectly. When shared links look clean and compelling, you'll see higher click-through rates and more referral traffic from social channels.

Keep reading

More from the blog

All articles