Generate perfectly formatted social media meta tags to make your links look professional on Facebook, X (Twitter), LinkedIn, WhatsApp and more. Free, instant, and no signup needed.
What Is an Open Graph Generator?
An Open Graph generator creates the small HTML meta tags that tell social platforms which title, description and image to show when someone shares your link. Fill in the form above, click Generate Meta Tags, copy the result, and paste it into the <head> of your page. The tool creates both Open Graph tags (Facebook, LinkedIn, WhatsApp, Pinterest, Discord) and Twitter Card tags (X) in one go.
Why Do Some Links Look Terrible on Social Media?
Have you ever spent hours writing the perfect blog post, only to paste the link into a Facebook post or a Tweet, and it looks awful? Sometimes there is no image, the title is cut off, or the description is just a random chunk of text from your sidebar.
This happens because social media platforms don't automatically know which part of your website to highlight. They need you to explicitly tell them what to display. You do this by adding Open Graph (OG) tags and Twitter Cards to the HTML of your page.
What Are Open Graph and Twitter Cards?
Originally created by Facebook in 2010, the Open Graph protocol was designed to make web pages easily sharable on social media. Today, almost every major platform, including LinkedIn, Pinterest, and Discord, uses Open Graph tags to generate those beautiful, clickable link previews.
Twitter (now X) has its own slightly different system called Twitter Cards. While Twitter can read standard Open Graph tags as a fallback, providing specific Twitter Card tags ensures your thumbnail image is large, crisp, and properly formatted for their feed.
Tags This Tool Generates
| Tag | Purpose |
|---|---|
og:title | Headline of the preview card |
og:description | Short summary under the title |
og:image | Thumbnail or large preview image |
og:url | The page address for the card |
og:type | Content type (set to website) |
og:site_name | Your brand or website name |
twitter:card | summary_large_image when you add an image, otherwise summary |
twitter:title, twitter:description, twitter:image | Text and image for the card on X |
twitter:site, twitter:creator | Your @username (optional) |
How to Use the Open Graph & Twitter Card Generator
- Enter your Page Title and the full Page URL (these two are required).
- Add your Site Name and a short Description.
- Paste the direct link of your thumbnail in Image URL. Use a 1200 × 630 px image.
- Optionally add your Twitter username.
- Click Generate Meta Tags, then Copy Tags to Clipboard.
- Paste the code inside the
<head>section of your page.
The tool also escapes quotes and special characters so your tags never break, and it adds https:// to your URL if you forget it. Everything runs in your browser, so nothing you type is sent to any server.
How This Tool Boosts Your Traffic
When you use our generator to create these tags, you aren't just making your links look pretty. You are actively optimizing for a higher Click-Through Rate (CTR). Here is why you need it:
- Big Images Win Clicks: Links that generate a "summary_large_image" card get significantly more engagement than links with tiny thumbnail boxes.
- Brand Professionalism: A perfectly cropped image with a catchy title makes your website look like a highly credible, professional source.
- Control Your Messaging: Instead of letting a bot guess what your article is about, you get to write the exact marketing hook that appears below the image.
How to Add These Tags to Your Website
Adding these tags is a one-time setup for most individual pages. Just fill out the form above with your article's title, a short description, and the direct URL to your featured image. Click generate, and copy the code.
If you are using custom HTML or Blogger, you just need to paste this code inside the <head> section of your website. Just be careful not to paste it inside the body of your text!
Blogger users: many Blogger themes already add basic Open Graph tags to posts automatically. Check your page source for og:title before pasting, so you don't create duplicate tags.
Want the full walkthrough with Blogger, WordPress and custom HTML steps? Read our detailed guide: How to Add Open Graph & Twitter Card Tags to Your Website.
Best Practices for Open Graph Images and Text
- Image size: use 1200 × 630 pixels (1.91:1 ratio) in JPG, PNG or WebP.
- Use a full image URL that starts with
https://and is publicly accessible. - Keep the image light. Compress it first with our Image Compressor.
- Title: about 60 characters or less so it is not cut off.
- Description: under 200 characters, written as a hook. See our guide on writing meta titles and descriptions.
- Refresh cached previews: after changing tags, use the Facebook Sharing Debugger or LinkedIn Post Inspector to clear the old preview.
Frequently Asked Questions
Are Open Graph tags a Google ranking factor?
No. Google does not use them directly for ranking. They improve how your links look when shared, which can bring more clicks, shares and traffic.
Do I need both Open Graph and Twitter Card tags?
Open Graph tags work on most platforms. Twitter Card tags give you extra control on X. This tool creates both together, so you don't have to choose.
What is the best image size for Open Graph?
1200 × 630 pixels is the most widely recommended size for sharp previews on Facebook, LinkedIn and X.
Where do I paste the generated code?
Inside the <head> section of your page. Tags pasted in the body of a post are ignored by social platforms.
Why is my old image still showing after I changed it?
Social platforms cache link previews. Run your URL through the Facebook Sharing Debugger or LinkedIn Post Inspector to refresh it.
Is this Open Graph generator free?
Yes. It is 100% free, needs no signup, and works entirely in your browser.