Open Graph Generator
Generate Open Graph and Twitter Card meta tags with a live share preview, so your page looks right when shared on Facebook, LinkedIn, X and Slack.
Loading tool…
How link previews are built from Open Graph tags
When a link is pasted into Facebook, LinkedIn, X, Slack, Discord or WhatsApp, the platform fetches the page and looks for a few meta tags in its head: og:title, og:description, og:image, og:url and og:type, defined by the Open Graph protocol, plus twitter:card and its companions for X. Those tags decide the headline, summary and picture in the preview card. Without them, each platform guesses — usually picking the wrong image or truncating the wrong text.
The image is the part people get wrong most often. A 1200×630 pixel image (a 1.91:1 ratio) displays well across nearly every platform, and the URL in og:image must be absolute — starting with https:// — or crawlers will ignore it. This generator writes the full set of Open Graph and Twitter Card tags from a short form and shows a live preview card as you type, so you can see the result before publishing.
Why we built this tool
Developers and site owners use it when launching a page, fixing a link that previews badly, adding tags to a static site or landing page, or checking that a title and description fit before a campaign goes out.
There is nothing to upload: you type a title, description and URLs, and the tags are assembled in your browser. Unpublished page titles and launch copy stay on your device until you choose to publish them.
Tips and common mistakes
- Use a 1200×630 image under 5 MB, and always reference it with a full https:// URL.
- Keep og:title to about 60 characters and og:description to about 155 so neither is cut off in the card.
- Set og:url to the page's canonical URL so shares of different URL variants are counted together.
- Platforms cache previews; after changing tags, re-scrape the URL with Facebook's Sharing Debugger or LinkedIn's Post Inspector.
Open Open Graph Generator with a link
Assistants and scripts can open Open Graph Generator with its input already in the link, after the #, which never leaves your device:
#title=— the page title#text=— the text to work on#page=— the page address the tags describe
Example: https://mygadgets.ink/tools/open-graph-generator/#title=...&text=...&page=... · also compressed gz fields and ?url=. How tool links work
Quick start: using Open Graph Generator
- Enter the page title, description and page URL.
- Add the absolute URL of the share image and your website name.
- Choose the content type — website, article, product, video or music.
- Check the live preview card and adjust the wording until it reads well.
- Copy the generated meta tags and paste them into your page's head.
Need the image too? Screenshot Studio exports at 1200×627 for LinkedIn, and Favicon Generator creates the icon set for the same page.
Why Open Graph tags matter
When someone shares your page on Facebook, LinkedIn, or Twitter, the platform reads your OG tags to build the preview card. Set them properly and you control the title, description, and thumbnail image. Leave them out and the platform makes its best guess — which is often wrong. Good OG tags increase click-through rates because the preview looks polished and relevant.
What each field does
- Website Name — The site or brand name that appears above the title in the preview. Keep it short.
- Page Title — The headline of your page. Aim for 55-60 characters so it doesn't get cut off.
- Description — A summary of the page content. Keep it under 160 characters for full display.
- Image URL — The thumbnail shown in the preview. Use a 1200×630 pixel image for the best display across all platforms.
- Page URL — The canonical URL of the page. This is what people click when they visit.
- Content Type — Tells platforms whether the page is a website, article, product, video, or music.
Making a preview image that works
The preview image is the most visible part of your social card. A bad image kills engagement. What works:
- Use 1200×630 pixels — This is the standard size that all major platforms support.
- Include text on the image — A title or key message on the image itself ensures it communicates even if the description is cut off.
- Keep it simple — One clear focal point, not a collage of elements.
- Use high contrast — Light text on a dark background (or vice versa) reads at thumbnail size.
- Test it — Paste the page URL into a social post draft to see how the preview actually appears before publishing.
Where to put the tags
The generated meta tags go inside the <head> section of your HTML, between the <head> and </head> tags. They do not affect how your page looks — they only tell social platforms what to display.
<head>
<title>Your Page Title</title>
<!-- Open Graph Meta Tags -->
<meta property="og:title" content="Your Page Title" />
<meta property="og:description" content="A brief description of your content" />
<meta property="og:image" content="https://example.com/image.jpg" />
<meta property="og:url" content="https://example.com/page" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="My Website" />
<!-- End Open Graph Meta Tags -->
</head>
Common uses
- Blog posts and articles — Control how each post appears when shared.
- Product pages — Show the product image and price in the preview.
- Landing pages — Ensure the preview matches your marketing message.
- Portfolio items — Display your work with a custom thumbnail.
Frequently asked questions
What size should an Open Graph image be?
1200×630 pixels (a 1.91:1 ratio) works across Facebook, LinkedIn, X and most chat apps. Keep the file under 5 MB and reference it with an absolute https:// URL.
Do I need separate Twitter Card tags?
X reads Open Graph tags as a fallback, but adding twitter:card set to summary_large_image ensures the large image layout. The generator includes both sets.
Why does my old preview still show after I changed the tags?
Social platforms cache link previews. Ask them to fetch the page again with Facebook's Sharing Debugger or LinkedIn's Post Inspector.