Skip to content
swapfire

OG image and meta tag generator, checked against each app's rules

Type your page's title and description to draw a 1,200 × 630 share image and write its meta tags, as HTML or as Next.js metadata. The same rules as the OG image checker check both, with the source for each, and the previews show the card on X, LinkedIn, Slack and iMessage. Everything runs in your browser.

Your page

The page you share. The tags point at its og.png and its address.

0 characters. X cuts titles after 70; keep your site name out of it.

0 characters. X shows up to 200; Google trims to the screen's width.

The image

Drawn 72 pixels tall at the top. It stays in your browser.

What each tag does

Search engines read the first three; the apps that draw link cards read Open Graph, and X adds one tag of its own.

The tags this generator writes, what each does and who reads it
TagWhat it doesWho reads it
<title>The page's title: the browser tab and Google's title linkBrowsers, Google
<meta name="description">A summary Google may show under the titleGoogle
<link rel="canonical">The page's one address; og:url should match itSearch engines
og:title, og:descriptionThe title and text of the link cardLinkedIn, Slack, iMessage; X when its own tags are missing
og:image, with its width, height and altThe card's picture: 1,200 × 630 pixels fits every app's rulesX, LinkedIn, Slack, iMessage
og:url, og:type, og:site_nameThe page's address, its kind and the site's nameEvery app that reads Open Graph
twitter:cardsummary_large_image asks X for the large image cardX

Questions

What size should an OG image be?

1,200 × 630 pixels, under 5 MB, as a PNG or JPEG. That passes every rule the OG checker reads: LinkedIn asks for at least 1,200 × 627 at 1.91:1, X's large card takes 2:1 images from 300 × 157, and Apple asks for images at least 900 pixels wide. This generator draws exactly 1,200 × 630.

Which meta tags does a page need for link previews?

ogp.me requires four: og:title, og:type, og:image and og:url. Add og:description and og:site_name for the text on the card. X reads those Open Graph tags when its own are missing, so the one X tag you need is twitter:card set to summary_large_image, which asks for the large image card.

How long should a title and a meta description be?

Google sets no limit on either and trims them to fit the screen, so put what matters first. X is stricter: it cuts card titles after 70 characters and descriptions after 200. The counters under each field show where you are.

Does Google use the keywords meta tag?

No. Google lists the keywords meta tag as one it doesn't use in Search, so this generator leaves it out. The description is the one that matters for the text under your result, and Google may still write its own from the page.

Where do I put the image?

At the root of your site, named og.png, so it loads at your domain followed by /og.png: the tags point there. On Next.js, put it in the public folder. After you change the image, LinkedIn's Post Inspector reads your page again, and Slack refreshes its copy after about 30 minutes.

Is anything sent to Swapfire?

No. The image is drawn in your browser, the tags are written there and the checks run there too. Nothing you type or upload leaves your computer. To check a page that is already live, use the OG image checker.

Sources

  1. The Open Graph protocol (ogp.me) ()
  2. X Developer Platform: Summary card with large image (archived) ()
  3. X Developer Platform: Summary card (archived) ()
  4. X Developer Platform: Cards markup tag reference (archived) ()
  5. LinkedIn Help: Make your website shareable on LinkedIn
  6. Slack: Slack robots
  7. Slack developer docs: Unfurling links in messages
  8. Apple TN3156: Create rich previews for Messages ()
  9. Google Search Central: Meta tags and attributes that Google supports
  10. Google Search Central: Influencing title links in Google Search
  11. Google Search Central: How to write meta descriptions

The app rules were read on and Google's pages on . X took its card documentation off its developer site, so its rules come from the Internet Archive's copies.

Then get it seen

A good card gets your link clicked when someone shares it. Swapfire gets it in front of people who haven't seen it yet: put a torch on your site, show other makers' products, and get yours shown across the network, paid in verified visits and sign-ups.

Join Swapfire