Build Open Graph and Twitter card meta tags with a live share preview — copy them into your <head> and every share looks polished.
How to use the open graph generator
Fill in the page URL, title, description, and an absolute image URL (1200×630 px is ideal).
Watch the preview card update as you type.
Press Generate meta tags and copy the output.
Paste the tags inside your page’s <head> and validate with the Open Graph Checker.
About this tool
When someone shares your link, the platform fetches these meta tags and renders a card — or, absent tags, a bare URL. A good card is marketing you write once and benefit from on every share: title under 60 characters, description under 160, and a striking 1200×630 image.
The generator emits the core og:* set plus twitter:card equivalents, escaping attribute values correctly so quotes in titles do not break your HTML. Pair it with the Open Graph Checker to verify a page after deployment.
Frequently asked questions
What image size should I use?
1200×630 pixels (1.91:1), PNG or JPG, under 300 KB, served over HTTPS at an absolute URL.
Do I need both og: and twitter: tags?
No — X falls back to Open Graph. Adding twitter:card lets you choose the large-image layout; the generator emits both for completeness.
Why isn’t Facebook refreshing my card?
Aggressive caching. Use their Sharing Debugger to scrape again after you change the tags.