What Open Graph Tag Generator does
Open Graph tags control how a link looks when it's shared on Facebook, LinkedIn and most other platforms that build a link preview card. Without them, a shared link often shows a blank image and a mismatched title pulled from wherever the crawler could find text. This tool turns a title, site name, description and image into the exact Open Graph markup to fix that.
How to generate Open Graph tags
- Fill in the title, site name, and a one- or two-sentence description.
- Add an image URL โ ideally sized around 1200ร630 pixels, the dimension most platforms crop to.
- Copy the generated tags and paste them into the page's HTML
<head>.
Why image size matters
Platforms crop the preview image to a fixed aspect ratio, close to 1.91:1. An image sized far outside that ratio โ a tall portrait photo, for instance โ tends to get cropped awkwardly, cutting off faces or key details. Using an image close to 1200ร630 pixels avoids that.
Common uses
- Blog posts and articles โ making sure a shared link shows the right headline and cover image.
- Product pages โ showing the actual product photo and name instead of a generic site logo.
- Fixing a broken preview reported by a marketing team or noticed after sharing a link.
Open Graph tags
- Add og:title, og:description and og:image.
- Use a 1200 x 630 pixel image.
- Test the result in a checker.
Which tags to set
Open Graph tags control how your link looks when shared on Facebook, LinkedIn and messaging apps. Set og:title, og:description, og:image, og:url and og:type. A 1200 x 630 pixel image works well for most platforms.
Where they go
- Paste the generated tags inside the head of your page.
- Use an absolute URL for the image.
- After changing tags, use the platform's debugger to refresh its cached preview.
Related tools
Open Graph Checker, Twitter Card Generator, Open Graph Image Previewer & Cropper.