Open Graph and Twitter Card Generator

Control how your page looks when it is shared on social networks.

Loading tool...

How to use Open Graph and Twitter Card Generator

  1. Enter the page title, description, URL and image URL.
  2. Choose the content type and Twitter card style.
  3. Copy the tags into your page's <head>.

About this tool

Open Graph tags were created by Facebook and are read by LinkedIn, WhatsApp, Slack, Discord and most other platforms to build link previews. X (Twitter) also reads its own twitter: tags and falls back to Open Graph. A large image of 1200 x 630 pixels works well everywhere.

Use absolute URLs for the page and image, and make sure the image is publicly reachable.

Frequently Asked Questions

What size should the image be?
1200 x 630 pixels (a 1.91:1 ratio) works for Facebook, LinkedIn and X large cards.
Why does my preview not update?
Platforms cache previews. Use each platform's debugger or sharing tool to refresh it.

Related tools