About the Open Graph Preview Generator
Open Graph Preview Generator writes the og: and twitter: meta tags that sites and apps read when someone shares your link. Enter a title, description, page URL, site name, og:type, image URL and alt text, plus an optional Twitter/X card type, @site handle and locale. Every value is escaped in the output.
Three generic preview cards show roughly how the link may appear. They are clearly labelled as approximations and do not imitate any specific platform. The image URL is written into the tags as text only and is never loaded. To see an image in the preview, choose a local PNG, JPG or WebP file; it stays on your device, its dimensions are shown, and Reset releases it from memory. Length hints are guidance only, and no tool can guarantee how any platform displays, crops or caches a preview.
How to use
- Enter the title and any other details you want in the tags.
- Optionally choose a local image to see it in the preview.
- Click Generate Preview and review any notes.
- Check the approximate preview cards.
- Copy the tags or download them as an .html snippet.
Key features
- Open Graph and Twitter/X tags with full escaping.
- og:type, og:locale, image alt and card type options.
- Local image preview with dimensions and aspect ratio.
- Image URL is never fetched.
- Three clearly labelled, generic approximate previews.
- Length guidance for title and description.
- Copy Tags, Download .html snippet, Reset and Back.
Best practices
- Write a specific title and a one-sentence description.
- Use an absolute https:// image URL, commonly about 1200 × 630 px.
- Always add image alt text.
- Set og:url to the page’s canonical URL.
- After publishing, use each platform’s own debugger to refresh its cached preview.
Benefits
- Correct, escaped tags ready to paste into the <head>.
- A quick visual check before you publish.
- No remote requests, so it is safe for unpublished pages.
- Private: nothing is uploaded or stored.
Frequently asked questions
Will my link look exactly like the preview?
No. The cards are generic approximations. Each platform has its own layout, cropping, text limits and cache, and may ignore or override your tags.
Why does the preview not show my image URL?
The tool never fetches the image URL, for privacy and to stay fully offline. It is written into the tags as text. Choose a local file if you want to see an image in the preview.
Is my local image uploaded?
No. It is read only by your browser for the preview and is not included in the tags. Reset releases it from memory.
What image size should I use?
A common recommendation is around 1200 × 630 pixels (about 1.91:1), and many sites ignore images smaller than 200 × 200 pixels. Check each platform’s current guidance.
Do I need both Open Graph and Twitter/X tags?
Many sites read Open Graph tags, and Twitter/X falls back to them for some values, but twitter:card sets the card type. Including both is a common, safe approach.
Are the length limits strict?
No. The title and description hints are general guidance. Platforms shorten text differently and change their layouts over time.
Is my content uploaded or saved?
No. Everything runs in your browser. What you paste or type is not sent anywhere, no URL is fetched, and nothing is saved in browser storage. Reset clears it from the page.