Generate Open Graph and Twitter/X HTML meta tags for rich social media sharing previews.
Loading tool
About Open graph meta generator
Generates Open Graph and Twitter/X card meta tags from a form: title, description, URL, site name, type, locale, image with alt text and dimensions, card type and Twitter handles. It can also output the <title>, meta description and canonical link, adds article author and published time for the article type, and shows approximate Facebook, X and LinkedIn link previews. It warns about long titles and descriptions and a missing image.
Common uses
- Add social sharing tags to a new page or blog post
- Preview roughly how a link will look before sharing it
- Fill in missing og:image or twitter:card tags on an existing site
- Produce a consistent <head> snippet for a static site
FAQ
- What size should an og:image be?
- 1200 x 630 pixels (about 1.91:1) is the widely recommended size and works for Facebook, LinkedIn and X large image cards.
- Do I need Twitter tags if I already have Open Graph tags?
- X falls back to Open Graph tags for title, description and image, but twitter:card is needed to choose the card type, such as summary_large_image.
- Why doesn't my updated preview show on social media?
- Platforms cache link previews. Use the platform's debugger (for example Facebook's Sharing Debugger or LinkedIn's Post Inspector) to force a re-scrape.
- Should og:url and og:image be absolute URLs?
- Yes. Crawlers read the tags out of context, so both should be full URLs including https://.