toolqik

182 · HTML & SEO

Open Graph Tag Generator

Create og: and twitter: tags and preview your link on Facebook, X, LinkedIn and Slack.

Runs in your browser
X card
Also add
    Tags for <head>
    
      
    Import tags from an existing page’s HTML

    About this tool

    When someone shares your link on Facebook, LinkedIn, X, Slack, Discord, WhatsApp or iMessage, the app fetches your page and builds a preview card from its Open Graph tags. Without them you get whatever the app guesses, often no image and the wrong text. Fill in the form, check the previews, and paste the tags into your page’s <head>.

    The essential tags

    • og:title, og:description and og:url: the card text and the canonical link.
    • og:image: an absolute https:// URL. Use 1200 × 630 pixels (a 1.91:1 ratio), under 5 MB, as PNG or JPEG. Put the important part in the middle, since some apps crop to a square.
    • og:type: website for most pages, article for posts (which adds published date, author, section and tags).
    • twitter:card: X needs this one tag to show a large image; for title, description and image it falls back to the og: tags.

    Why doesn’t my preview update?

    Apps cache previews, sometimes for days. After changing tags, ask them to re-fetch: Facebook’s Sharing Debugger, LinkedIn’s Post Inspector, and for X, posting the link again with a query string such as ?v=2. Also check that the image URL is public (not behind a login or blocked in robots.txt) and that the tags are in the HTML the server sends, not added later by JavaScript: most crawlers don’t run scripts.

    FAQ

    What size should an Open Graph image be?

    1200 × 630 pixels (1.91:1), under 5 MB, PNG or JPEG. It looks sharp on high-resolution screens and isn’t cropped on most platforms.

    Do I need Twitter card tags as well as Open Graph?

    Only twitter:card. X reads the title, description and image from the og: tags when twitter: versions are missing.

    Why is my link preview not showing an image?

    Common causes: a relative image URL, an image behind a login or blocked by robots.txt, an image over 5 MB, or tags added by JavaScript. Then re-scrape with the platform’s debugger, because previews are cached.

    Are the previews exact?

    They follow each platform’s current layout closely, but platforms change their designs and crop images differently. Check with their debuggers before a big launch.

    Is my data uploaded?

    No. Everything runs in your browser. Your browser loads the image URL you enter to show the preview and check its size.

    esc
    ↑↓ navigate↵ open