Home › Developer Tools › Open Graph Preview

Open Graph Preview

Paste the <head> of your page (or just its meta tags) and see how your link will look when shared on Facebook, X, LinkedIn and chat apps. The checker flags missing tags, long titles and wrong image sizes, and you can copy a clean set of tags.

Last updated:

🔒 Previews are built only from the tags you paste or type. This tool does not fetch your URL from a server and nothing leaves your browser.

Tags (edit to update the HTML above)

More tags: Twitter overrides, image alt, page title

Link previews

Facebook

X · summary_large_image used

From

X · summary used

LinkedIn

Slack

Discord

WhatsApp

Previews are neutral mockups of each platform's card layout. Real apps change their designs and may crop images differently.

Checker

    Generated tags

    Advertisement
    Advertisement

    How to use the Open Graph Preview

    1. Paste your HTML: open your page, view the source and copy the <head> section (or only the meta tags) into the box.
    2. Or fill in the fields by hand. Changes are written back into the pasted HTML automatically.
    3. Check the previews for Facebook, X, LinkedIn and chat apps. Switch tabs or view them all at once.
    4. Fix the warnings in the checker, such as a missing og:image, a title that is too long or a relative URL.
    5. Press Copy under Generated tags and paste the result into the <head> of your page.

    The essential Open Graph and Twitter tags

    A good link preview needs only a handful of tags in the <head> of your page. Open Graph tags use the property attribute, Twitter tags use name.

    TagWhat it doesRecommendation
    og:titleHeadline of the cardUp to 60 characters; no site name needed if og:site_name is set
    og:descriptionOne or two lines under the title55–200 characters, written for people, not keywords
    og:imageThe preview imageAbsolute https URL, 1200 × 630 px, JPG or PNG
    og:urlCanonical address of the pageAbsolute URL, same as your canonical link
    og:typeKind of objectwebsite for most pages, article for posts
    og:site_nameBrand shown above or below the titleYour site or company name
    twitter:cardCard layout on Xsummary_large_image for a big image, summary for a square thumbnail

    Image sizes for each platform

    One 1200 × 630 px image (aspect ratio 1.91:1) works almost everywhere. Platforms crop to their own shape, so keep logos and text inside the central area.

    PlatformCard shapeRecommendedMinimum
    Facebook1.91:1 large image1200 × 630 px200 × 200 px (shown small below 600 × 315)
    X large image card1.91:1 (2:1 also fine)1200 × 630 px300 × 157 px
    X summary card1:1 thumbnail600 × 600 px144 × 144 px
    LinkedIn1.91:11200 × 627 px200 × 200 px
    WhatsApp, iMessageSquare or wide thumbnail1200 × 630 px, under 300 KB for WhatsApp300 × 200 px

    A copy-ready template

    Replace the values and paste this into the head of your page, then paste your page's head back into the tool to check it:

    <meta property="og:type" content="website">
    <meta property="og:url" content="https://example.com/page/">
    <meta property="og:title" content="Page title under 60 characters">
    <meta property="og:description" content="A one or two sentence summary of the page.">
    <meta property="og:image" content="https://example.com/images/share-1200x630.jpg">
    <meta property="og:image:width" content="1200">
    <meta property="og:image:height" content="630">
    <meta property="og:site_name" content="Example">
    <meta name="twitter:card" content="summary_large_image">

    Common reasons a link preview is broken

    • Relative image path: /img/share.jpg instead of https://example.com/img/share.jpg.
    • Tags added by JavaScript: most crawlers do not run scripts, so tags must be in the HTML the server sends.
    • Image blocked: a login wall, robots.txt rule, firewall or hotlink protection stops the crawler from downloading the image.
    • Old cache: the platform stored an earlier preview. Re-scrape the URL with the platform's debugger.
    • Duplicate tags: two og:title tags from a theme and a plugin. Platforms usually take the first one.

    Frequently asked questions

    What are Open Graph tags?

    Open Graph tags are meta tags in the head of a web page, such as og:title, og:description and og:image. Facebook created the protocol, and today LinkedIn, Slack, Discord, WhatsApp, iMessage and many other apps read them to build the preview card that appears when someone shares a link.

    What size should an og:image be?

    Use 1200 × 630 pixels, an aspect ratio of about 1.91:1. That size looks sharp on Facebook, LinkedIn and X large image cards. Keep important text away from the edges, use JPG or PNG, and keep the file under a few megabytes (X allows up to 5 MB).

    How long should an og:title be?

    Aim for 60 characters or less so the whole title shows on every platform. Facebook can show up to about 88 characters on desktop before cutting it off, but mobile feeds and chat apps truncate earlier. For og:description, 55 to 200 characters works well.

    Does X (Twitter) use Open Graph tags?

    Yes. X looks for twitter:title, twitter:description and twitter:image first and falls back to og:title, og:description and og:image. You still need twitter:card, set to summary_large_image for a big image or summary for a small square thumbnail.

    Why doesn't my link preview update after I change the tags?

    Platforms cache previews, often for days. After you publish the new tags, ask the platform to re-scrape the page with its own sharing debugger or post inspector, or add a query string such as ?v=2 to the shared URL to force a fresh fetch.

    Why does this tool not fetch my URL directly?

    Browsers block web pages from reading other sites' HTML (CORS), so a purely client-side tool cannot download your page. Paste the HTML instead. Nothing you paste is sent anywhere, which also means you can check pages that are not public yet.

    Must og:image and og:url be absolute URLs?

    Yes. Crawlers read the tags without knowing your page's base URL, so use full URLs that start with https://, for example https://example.com/images/share.jpg. Relative paths such as /images/share.jpg are often ignored and the preview shows no image.

    Are all the tools on FreeToolCabin tested for quality and accuracy?

    Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

    Related tools

    Meta Tag GeneratorCreate SEO, Open Graph and X meta tags with live previews.Deep Link GeneratorCreate links that open directly in apps.Website Down CheckerCheck if a website is down for everyone.QR Code GeneratorMake QR codes for links, Wi-Fi, email and more.App Icon GeneratorMake every iOS, Android adaptive, PWA and macOS app icon size from one image, as a ZIP.Favicon GeneratorMake a favicon.ico, PNG icons, apple-touch-icon and web manifest from an image, text or emoji.Open Graph Image GeneratorDesign 1200x630 social share images with templates and live link previews, then export PNG.Robots.txt GeneratorBuild a robots.txt file with rules, sitemap lines and AI-bot blocking presets.CSS Box Shadow GeneratorDesign layered CSS box shadows with a live preview, presets and one-click Copy CSS.CSS Border Radius GeneratorRound each corner, draw elliptical 8-value radii or random blob shapes and copy the CSS.CSS Button GeneratorDesign CSS buttons with gradients, borders, shadows and hover and active states, then copy the code.CSS Flexbox GeneratorBuild flexbox layouts visually: set container and item properties, then copy the CSS and HTML.CSS Grid GeneratorDraw CSS grid layouts: set tracks and gaps, drag to name areas, then copy the CSS and HTML.PX to REM ConverterConvert px to rem or em and back, with a 1-100px table and a whole-CSS converter.Glassmorphism CSS GeneratorDesign frosted-glass UI cards with blur, transparency and border sliders, then copy the CSS.CSS Text Shadow GeneratorLayer CSS text shadows with a live preview and neon, 3D, outline and retro presets.HTML Editor (Live Preview)Write HTML, CSS and JavaScript and see a live, sandboxed preview as you type.HTML to JSX ConverterConvert HTML to valid React JSX: className, htmlFor, style objects, self-closing tags and events.CSS Clip-Path GeneratorDraw CSS clip-path shapes by dragging points: polygons, circle, ellipse and inset. Copy the CSS.CSS Animation GeneratorCreate CSS keyframe animations from 23 presets with live preview, timing controls and Copy CSS.CSS Triangle GeneratorMake CSS triangles in 8 directions with the border trick or clip-path. Set size and color, copy CSS.CSS Loader GeneratorPick from 14 pure CSS spinners and loaders, set color, size and speed, then copy the HTML and CSS.Cubic Bezier GeneratorDrag the control points to design a CSS easing curve, compare it with linear and copy cubic-bezier().CSS Filter GeneratorAdjust blur, brightness, contrast, hue, sepia and drop-shadow on an image and copy the CSS filter.CSS Specificity CalculatorCalculate CSS selector specificity (a, b, c), including :is(), :not(), :has() and :where(), and compare.Google Maps Embed GeneratorTurn an address or coordinates into responsive Google Maps iframe embed code, no API key.Neumorphism CSS GeneratorDesign soft UI neumorphic shapes with live preview and copy the box-shadow CSS.SVG Wave GeneratorMake layered SVG waves for section dividers and export SVG, PNG or a CSS background.SVG Blob GeneratorGenerate random organic SVG blob shapes with gradients and export SVG, PNG or CSS clip-path.CSS Clamp GeneratorTurn min/max sizes and viewport widths into a fluid CSS clamp() value in rem and vw.CSS @font-face GeneratorTurn font files or URLs into ready-to-paste @font-face rules with weights, styles and a preview.CSS Media Query GeneratorBuild @media rules for widths, orientation, dark mode and hover, or get framework breakpoints.CSS Scrollbar GeneratorStyle scrollbars: width, colors, radius and hover, with ::-webkit-scrollbar and scrollbar-color CSS.CSS Sprite GeneratorPack many icons into one sprite sheet PNG and get CSS classes with background-position.CSS Text Gradient GeneratorMake gradient text with background-clip:text: color stops, angle, font preview and fallback CSS.CSS Toggle Switch GeneratorDesign pure-CSS toggle switches: size, colors, shape and animation. Copy accessible HTML + CSS.CSS Tooltip GeneratorBuild pure CSS tooltips: position, arrow, colors, padding and animation. Copy HTML and CSS.HTML Form BuilderDrag and drop form fields with labels and validation, then copy accessible HTML and CSS code.Tailwind CSS Cheat SheetSearchable Tailwind class to CSS reference with live previews, class decoder and color palette.Web App Manifest GeneratorCreate a PWA manifest.json and every app icon size from one image, downloaded as a ZIP.CSS Background Pattern GeneratorMake pure-CSS stripes, dots, checkerboard, zigzag and grid backgrounds and copy the code.CSS Color Filter GeneratorTurn a HEX color into a CSS filter that recolors black icons and SVGs, with an accuracy score.CSS Gradient Animation GeneratorCreate animated gradient backgrounds: pick colors, angle and speed, preview live and copy the CSS.CSS Hover Effects GeneratorPick button, link and image hover effects, tweak colors and timing, and copy the HTML and CSS.CSS InlinerMove CSS from style blocks into inline style attributes so HTML emails render in every client.CSS Shape Divider GeneratorCreate wave, tilt, curve and triangle section dividers and copy the SVG, HTML and CSS.CSS Transform GeneratorRotate, scale, skew and translate an element with sliders and copy the CSS transform code.Font Pairing ToolPreview Google Font heading and body pairs on real layouts and copy the embed code and CSS.HTML Accessibility CheckerPaste HTML to find WCAG accessibility problems with impact level, the failing element and a fix.HTML Image Map GeneratorDraw clickable rectangle, circle and polygon hotspots on an image and get image map HTML.SVG ViewerOpen or paste SVG code to preview it live with zoom, backgrounds, size info and PNG export.Pathfinding VisualizerAnimate BFS, DFS, Dijkstra, A* and greedy search on a grid with walls, weights and mazes.Iframe GeneratorCreate iframe embed code: size or responsive ratio, border, allow, sandbox, lazy load, live preview.PX to VW ConverterConvert pixels to vw and vh for any viewport size, and vw/vh back to px, with breakpoint tables.SVG Path EditorEdit an SVG path d attribute visually: drag points, edit commands, convert, scale and minify.SVG to CSS Data URITurn SVG code into a small URL-encoded data URI for CSS backgrounds, with Base64 size comparison.SVG to JSXTurn SVG code into a clean React component: camelCase attributes, style objects, TypeScript.
    See all 52 Web, HTML & CSS Tools →