How to create social sharing tags
- Fill in the formTitle, description, page URL, image URL and site name. Counters warn you when text is likely to be cut off.
- Check the previewThe card shows roughly how your link will look on Facebook, LinkedIn, WhatsApp and X.
- Copy the tagsPaste them inside the <head> of your page, or into your CMS's custom head code. Special characters are escaped for you.
Choosing the share image
- Use 1200 × 630 pixels (a 1.91:1 ratio) for large cards; keep important text away from the edges.
- Keep the file under about 5 MB, in JPG, PNG or WebP. Resize it with the image resizer and compressor.
- Use a full https:// URL that's publicly reachable, not a local file path.
- Add alt text describing the image for people using screen readers.
See the right sizes for every platform in our social media image sizes guide.
After you add the tags
Publish the page, then check it with the Meta Tag Previewer by pasting your page's HTML. Social networks cache link cards, so if you change the tags later, use the platform's own sharing debugger (for example Facebook's Sharing Debugger or LinkedIn's Post Inspector) to refresh the preview. Remember that these tags control how links look when shared; your Google title and meta description are separate tags.
Frequently asked questions
What size should an Open Graph image be?
1200 × 630 pixels works well everywhere. Smaller images may show as a small thumbnail instead of a large card.
Do I need separate Twitter tags?
X reads Open Graph tags as a fallback, but twitter:card is needed to choose the large image layout. This generator includes both.
Why doesn't my new image show when I share the link?
Social networks cache previews. Use the platform's sharing debugger to fetch the page again.
Do these tags help my Google ranking?
Not directly, but attractive link cards get more clicks and shares, which helps your content reach more people.