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.
| Tag | What it does | Who reads it |
|---|---|---|
| <title> | The page's title: the browser tab and Google's title link | Browsers, Google |
| <meta name="description"> | A summary Google may show under the title | |
| <link rel="canonical"> | The page's one address; og:url should match it | Search engines |
| og:title, og:description | The title and text of the link card | LinkedIn, Slack, iMessage; X when its own tags are missing |
| og:image, with its width, height and alt | The card's picture: 1,200 × 630 pixels fits every app's rules | X, LinkedIn, Slack, iMessage |
| og:url, og:type, og:site_name | The page's address, its kind and the site's name | Every app that reads Open Graph |
| twitter:card | summary_large_image asks X for the large image card | X |
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
- The Open Graph protocol (ogp.me) ()
- X Developer Platform: Summary card with large image (archived) ()
- X Developer Platform: Summary card (archived) ()
- X Developer Platform: Cards markup tag reference (archived) ()
- LinkedIn Help: Make your website shareable on LinkedIn
- Slack: Slack robots
- Slack developer docs: Unfurling links in messages
- Apple TN3156: Create rich previews for Messages ()
- Google Search Central: Meta tags and attributes that Google supports
- Google Search Central: Influencing title links in Google Search
- 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