Twitter Card Generator

Generate 1200 by 628 X share cards from a title, description, and brand artwork.

The Twitter Card Generator builds a 1200 by 628 PNG that X shows when somebody pastes one of your URLs into a post. The output targets the summary_large_image card type, which is the dominant format on X today and the one most teams want for marketing content. The same render works as a fallback for the standard Open Graph image, so one file covers both X and the platforms that follow the ogp.me specification.

In practice, most engineering teams use a single share image for both og:image and twitter:image. This tool exists for the cases where a brand wants distinct artwork for X (because the audience there expects a different tone), where the title and description need to differ between page metadata and post copy, or where the layout works better with X's specific cropping. The output is a hosted PNG URL that you drop into the twitter:image meta tag, and the card refreshes the next time X scrapes the URL.

Sample output from the Twitter Card Generator

How it works

  1. Choose summary or summary_large_image

    Pick the card type your post needs. Summary uses a small square thumbnail beside the post copy, while summary_large_image fills the width of the post with a 1.91:1 image. Most marketing content benefits from summary_large_image because it dominates the timeline.

  2. Set the title, description, and brand details

    Fill in the page title (up to seventy characters), the description (up to two hundred characters), and the brand colour and logo. The renderer truncates anything longer with an ellipsis rather than rejecting the input, so you can see the result before you trim.

  3. Preview how the card sits in a post

    The preview shows the rendered card inside a mocked X post template, so you can judge how it reads next to a typical reply chain. The mock is for layout only and does not affect the rendered output.

  4. Copy the URL into twitter:image

    Copy the hosted CDN URL into the twitter:image meta tag in your page head, set twitter:card to summary_large_image, and ship. X picks up the new card the next time it scrapes the URL, usually within a few minutes for a fresh page.

When to use it

Distinct artwork for X versus LinkedIn

A SaaS brand that wants a more casual tone on X and a more buttoned-up tone on LinkedIn can render two cards from the same data. Use the OG image for LinkedIn and Slack, and a separate Twitter Card with different copy and colours for X. The audience-specific framing tends to lift click-through more than the rendering effort costs.

Per-thread share cards for content marketing

Editorial teams that promote individual posts to X benefit from share cards that show the thread topic rather than a generic site card. Render a card per post during publishing, store the URL on the post record, and the thread author can share the URL without needing to manually attach an image.

Product launch cards with countdown context

Launches benefit from share cards that signal the moment, not just the brand. Render a card with the product name, the launch date, and a countdown phrase, and replace it with the launched version the day the product goes live. The URL stays stable, only the rendered file moves.

Podcast and video episode cards

Podcast hosts and video creators who share new episodes to X need cards that show the episode title, the guest name, and the cover art. Render one card per episode at publish time, store it with the episode record, and the share card carries the episode identity rather than the show identity.

Event and webinar promotion

Event organisers benefit from cards that show the event name, the date, and the speaker headshots. Render once per event, share across X promotion runs, and update the file when the event details change without touching the URL.

Examples

Default summary_large_image

Dark background with title, description, and brand logo top-left. The default for software brands and editorial sites.

Default summary_large_image, an example from the Twitter Card Generator

Quote-style card for thread promotion

Large serif type with a short quote from the linked post, useful for editorial threads and essays.

Quote-style card for thread promotion, an example from the Twitter Card Generator

Product launch card with date

Bold product name, a single descriptive line, and a launch date stamp in the lower-right corner.

Product launch card with date, an example from the Twitter Card Generator

Tips

Always set twitter:image:alt

X surfaces twitter:image:alt to screen readers and to users who have images disabled. A clear one-sentence description of the card content lifts impressions from those audiences and is read by a growing number of automated quality checks.

Keep the file under 5 MB

X caps Twitter Card images at 5 MB, which is lower than the 8 MB Facebook ceiling. Default renders sit between 50 KB and 200 KB so this rarely binds, but watch the size if you start rendering at 2x DPI or include photographic backgrounds.

Debug by pasting the URL into a draft post

X retired the Card Validator in 2023, so the most reliable way to debug a card is to paste the URL into a draft post and look at the preview that appears below the compose box. The preview shows exactly what other users will see and surfaces any meta tag problems.

Use the same image for og:image as a fallback

Crawlers that do not handle twitter:image fall back to og:image, so duplicating the URL across both meta tags gives the broadest coverage. The exception is when you deliberately want different artwork on each platform, in which case set them separately.

Set twitter:card explicitly

Without twitter:card set, X may fall back to a small thumbnail card or no card at all. Always include twitter:card with the value summary_large_image (or summary if you want the small format), and X will render the card in the post immediately on first scrape.

Frequently asked questions

What size should a Twitter Card image be?
For summary_large_image, X recommends 1200 by 628 pixels at a 1.91:1 aspect ratio. For the small summary card, X uses a 144 by 144 thumbnail. Most marketing teams use summary_large_image because it dominates the timeline and reads better on mobile.
What is the difference between summary and summary_large_image?
Summary cards show a small square thumbnail beside the post copy, which keeps the card compact but small. Summary_large_image cards show a wide image above the post copy, which takes more screen real estate but draws more attention. The large format wins the click in nearly every test.
Why is my Twitter Card not showing on X?
Most card failures come from missing twitter:card meta tags, broken twitter:image URLs, or X not having scraped the page yet. Check that twitter:card is set to summary_large_image, that twitter:image returns a 200 response, and that the page has been live for at least a few minutes before X tries to scrape it.
Do I need twitter:image if I already have og:image?
X falls back to og:image when twitter:image is missing, so technically no. In practice, setting twitter:image explicitly is safer because it lets you serve different artwork on X and because it removes any ambiguity for crawlers that do not implement the fallback correctly.
Was the Twitter Card Validator deprecated?
Yes, X removed the Card Validator tool in 2023. The recommended way to debug a card is now to paste the URL into a draft post and look at the preview that appears beneath the compose box, which uses the same scrape as a real post.
Does X cache Twitter Card images?
Yes, X caches both the card content and the rendered image. The cache typically refreshes within a few hours of a content change, but you can force a refresh by appending a query string to the twitter:image URL or by sharing the link from a new post.
Can I use a GIF or video as a Twitter Card image?
X supports static images (PNG, JPG, WEBP) and GIFs as twitter:image values. Animated GIFs do not autoplay in card previews on most surfaces, so a static PNG remains the safest choice unless the animation adds genuine context to the post.

Related templates

Related articles

More tools

Quote Card Generator

Turn a quote and an attribution into a 1080 by 1080 PNG for Instagram and LinkedIn.

Certificate Generator

Generate course completion certificates with recipient name, date, and signature.

Build it into your own product

The Twitter Card Generator runs on the HTML to Image API. Call the same renderer from your own code with a free account. 25 renders a month on the free tier. See the pricing page for higher-volume plans.