Skip to main content

Meta Tag / Open Graph Preview

Preview how your link appears on X (Twitter), Facebook, LinkedIn and Slack, then copy ready-made Open Graph and Twitter Card meta tags for your page.

Twitter / X
DevStackKit Developer ToolsFast, free browser-based tools for developers.
Facebook
DevStackKit Developer Toolshttps://www.devstackkit.com/
LinkedIn
DevStackKit Developer ToolsFast, free browser-based tools for developers.
Slack
DevStackKit Developer ToolsFast, free browser-based tools for developers.

Meta tags

Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)

Social Meta Tag and Open Graph Preview Generator

See how your link may look when shared across major social platforms, and copy the corresponding HTML meta tags. It helps content teams and developers catch truncated titles, missing images, and misleading social previews before a page is shared.

What this tool does and who uses it

Open Graph and social card metadata tells a platform which title, description, image, and URL to show when someone shares a page. Two concrete uses: a marketer double-checking that a blog post's share card will actually show an image before publishing, and a developer generating the exact Open Graph/Twitter meta tags to paste into a page's <head> without memorizing the property names.

Worked example

The default values (title "DevStackKit Developer Tools", description "Fast, free browser-based tools for developers.", the DevStackKit og-image, and the DevStackKit homepage URL) generate an 11-line block of tags, starting with <title>DevStackKit Developer Tools</title> and including both og:* and twitter:* properties, ready to paste directly into a page's <head>.

Common mistakes and edge cases

  • All four preview cards (Twitter / X, Facebook, LinkedIn and Slack) show the image when its address works. Real platforms crop the image differently, so check the important part of the picture stays in the middle.
  • Text isn't truncated to match what a platform would actually show — a long title or description displays in full here, while X, Facebook, and others truncate at their own length limits when rendering a real card. Verify the actual cutoff on the live platform, not this preview.
  • An image URL that 404s or fails to load simply disappears from the preview (the broken-image icon is hidden) rather than showing an error, so a missing image can be easy to miss here.

Frequently asked questions

Does this preview publish or fetch my image?
No. The tool only displays the image URL you provide and generates HTML in your browser. It never sends your content to a server.
Which social platforms are represented, and how complete is each preview?
All four show a card with your image, title and description (Facebook shows the page address instead of the description). The cards are an approximation: each platform has its own image crop and text limits, so confirm the final result with the platform’s own debugger after publishing.
Where should I put the generated tags?
Place the copied tags inside the head element of the page you want social crawlers to preview.
Will this show me if my title or description is too long for a platform?
No — it displays your full text regardless of length. Real platforms truncate long titles and descriptions when actually rendering a card; this preview doesn’t simulate that, so verify the final page directly on each platform (or its current official debugging/preview tool, since these change over time) before relying on an exact cut-off point.
Why does my social link preview show the wrong image?
Social networks read the og:image tag. It must be a full address starting with https://, the file must be public, and the size should be around 1200 by 630 pixels. Platforms keep a copy for a while, so a fixed tag may not show until you refresh the page in their own debugger tool.

Related tools

More Frontend & Design

View all Frontend & Design tools →