Skip to main content

Twitter Card Generator

Outputs Twitter Card meta tags for Summary, Summary Large Image, App, and Player card types and validates fields against platform limits. Title is capped at 70 characters, description at 200, player URLs must be HTTPS, and images must hit a minimum 68,600-pixel area. Selectable HTML or XHTML self-closing syntax with name versus property attribute style; app cards emit per-platform deep links and store IDs for Android, iPhone, and iPad.

Runs entirely in your browser

This tool sends nothing over the network. Everything you enter is processed on your device and never reaches our servers.

Social Media
Open Graph
Meta Tags
Web Development
Loading the tool
Reference

Documentation

A Twitter Card is the title, description, and image (or player) that Twitter and X render directly in the timeline when a link is shared, read from a set of meta tags placed in a page's <head>. The Twitter Card crawler fetches those tags at share time, so a well-configured card lifts engagement, click-through rate, and brand recall on social posts, while a missing or malformed one falls back to a bare link.

Four card types cover different content: Summary for blog posts and articles, Summary Large Image for marketing pages with a strong hero image, App for promoting a mobile app, and Player for inline video or audio. The site field, an @ handle, is optional but helps Twitter associate the card with an account. Title is capped at 70 characters before the timeline truncates it. Description runs up to 200 characters, though Twitter often shortens a long description further on mobile, so trimming aggressively holds up better than relying on the limit.

Image requirements differ by card type: Summary cards work best with a square image of at least 144 by 144 pixels, while Summary Large Image uses a 2:1 ratio with a minimum of 300 by 157 pixels; alt text on the image supports screen reader users and accessibility scoring. Player cards need an HTTPS player URL, embed width and height in pixels, and a preview image. App cards carry a name, a custom URL scheme, and a store ID for each platform toggled on, Android, iPhone, and iPad, so a single shared link can drive installs across every platform without a landing page in between.

Advanced Settings switches between HTML and XHTML self-closing tag syntax, swaps the name attribute for property, and can indent the output for pasting inside an existing head block. The generated tags should be checked with the Twitter Card validator before publishing, since a malformed tag fails silently in the timeline rather than throwing a visible error.

A Twitter Card is worth building before a new page goes out, or auditing on an existing one that carries missing or malformed social metadata. Marketing, product, engineering, and content teams all reach for the same outcome: control over how a link renders when it is posted, rather than leaving Twitter to guess. A few minutes of tag work can sharply lift click-through rate on a shared link.

  • Content marketing: A Summary Large Image card for a new long-form post pairs the post title, a 150-character description, and the hero image already used on the article page, and the same metadata can serve Facebook and LinkedIn alongside Open Graph tags.
  • Product launches: A card for a product page combines a sharp 2:1 hero image, a benefit-driven title, and a description naming the launch date and price.
  • Mobile app promotion: An App card with iPhone, iPad, and Google Play deep links lets a single shared tweet drive installs across every platform without forcing visitors through a landing page.
  • Podcast and video sharing: A Player card embeds an episode inline, so listeners and viewers press play directly in the timeline, which lifts completion rates on short clips.
  • News and publishing: Article fields fed through the generator and templated into a CMS page head roll cards out across an entire site.
  • SEO and technical audits: Competitor pages with missing or malformed Twitter Card tags rebuild quickly using the generator as a reference for correct tag names and value formats.
  • Affiliate and review sites: A review-page card with a product image, a star-rating line in the description, and an @handle keeps attribution intact when a post gets reshared.
  • Documentation and developer relations: Summary cards on docs pages render shared API and tutorial links with the page title and a short blurb rather than a bare URL.
Inputs, outputs, and what the Twitter Card Generator computes

What the Twitter Card Generator asks for and what it returns, as a plain list. Defaults, units, and ranges are the ones the form loads with.

Inputs

  • Summary: Title, description, and a small square thumbnail. Best for articles, blog posts, and general web pages. / Summary Large Image: Same fields as Summary, with a prominent 2:1 hero image. Best for marketing pages and featured content. / App: Promotes a mobile app with platform-specific install links for iPhone, iPad, and Google Play. / Player: Embeds an inline video or audio player. Requires an HTTPS player URL and a preview image. · default: Summary: Title, description, and a small square thumbnail. Best for articles, blog posts, and general web pages.
  • Site (Twitter @username, optional) (text input)
  • Title (text input)
  • Description (max 200 characters)
  • Image URL (URL input)
  • Image alt text (text input)
  • Player URL (HTTPS required) (URL input)
  • Width (pixels) (numeric input) · minimum: 1
  • Height (pixels) (numeric input) · minimum: 1
  • Preview image URL (URL input)
  • Preview image alt text (text input)
  • Include Android (Google Play) · default: on
  • Include iPhone · default: on
  • Include iPad · default: off
  • App store country code (optional, two letters) (text input)
  • App name (text input)
  • Custom URL scheme (must include ://) (text input)
  • Google Play ID (text input)
  • App Store numeric ID (text input)
  • HTML (<meta name="twitter:card" content="...">) / XHTML self-closing (<meta ... />) · default: HTML (<meta name="twitter:card" content="...">)
  • Use name="twitter:..." (Twitter recommended) / Use property="twitter:..." (Open Graph style) · default: Use name="twitter:..." (Twitter recommended)
  • Indent output with two leading spaces (for pasting inside an existing <head> block) · default: off

Controls

Generate · Reset · Copy to Clipboard · Download as .txt · Download as HTML starter