Twitter Card Image Size: The Complete Dimension & Ratio Guide
Master Twitter Card image dimensions. Learn 1200x628 vs 600x600 px sizes, 1.91:1 and 1:1 aspect ratios, 5MB file limits, and preview optimization.
When users share links across Twitter / X, the card image is the decisive visual factor determining user engagement, retweets, and click-through rates. If your Twitter Card image is incorrectly sized, Twitter will crop important text, stretch graphics awkwardly, or downgrade your post from an expansive horizontal banner to a tiny square thumbnail.
In this developer guide, you will learn the exact image dimensions, aspect ratios, file size constraints, and safe zone boundaries required for both summary_large_image and summary cards, complete with multi-framework implementation examples and instant validation with our free Twitter Card Generator.
Twitter Card Types & Image Dimension Cheat Sheet
Twitter / X supports two primary card types for standard web links:
| Card Type | Recommended Dimensions | Minimum Dimensions | Aspect Ratio | Max File Size | Best Use Cases |
|---|---|---|---|---|---|
summary_large_image |
1200 × 628 px (or 1200 × 630 px) | 300 × 157 px | 1.91:1 |
5 MB | Blog posts, marketing landers, SaaS tools, news |
summary |
600 × 600 px (or 800 × 800 px) | 144 × 144 px | 1:1 (Square) |
5 MB | User profiles, documentation, ecommerce items |
<!-- High-Impact Twitter Large Image Card Markup -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@OpenGraphGen" />
<meta name="twitter:creator" content="@sanjaysamanta" />
<meta name="twitter:title" content="Twitter Card Image Size: The Complete Dimension Guide" />
<meta name="twitter:description" content="Master Twitter / X image ratios, avoid awkward cropping, and optimize feed CTR." />
<meta name="twitter:image" content="https://opengraphgenerator.com/images/twitter-card-guide.png" />
<meta name="twitter:image:alt" content="Visual guide to Twitter Card image dimensions and safe zones" />
<!-- Open Graph Complement -->
<meta property="og:image" content="https://opengraphgenerator.com/images/twitter-card-guide.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="628" />
1. Summary Card with Large Image (summary_large_image)
The summary_large_image card format features a full-width landscape banner positioned prominently above the tweet’s headline and description. It occupies maximum vertical real estate in the Twitter / X timeline, making it the preferred card format for content creators and marketers.
Technical Specifications:
- Recommended Resolution: 1200 × 628 pixels (or standard 1200 × 630 pixels).
- Aspect Ratio:
1.91:1(Landscape). - Maximum File Size: 5 MB for standard images (GIFs up to 15 MB).
- Supported File Formats: WebP, PNG, JPEG, and animated GIF (renders first frame as static preview).
[!TIP] If your image is wider than 300px but has an aspect ratio taller than
1.91:1(e.g.1:1square or4:5portrait), Twitter will crop the top and bottom to force a1.91:1container. Keep all critical logos and text within the central safe zone!
2. Standard Summary Card (summary)
The standard summary card is designed for content that benefits from a compact, subtle presentation. It renders as a square thumbnail aligned to the left of the title and description snippet.
Technical Specifications:
- Recommended Resolution: 600 × 600 pixels (or 800 × 800 pixels).
- Aspect Ratio:
1:1(Perfect Square). - Minimum Dimensions: 144 × 144 pixels.
- Maximum File Size: 5 MB.
<!-- Compact Summary Card Markup -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="API Documentation | Developer Reference" />
<meta name="twitter:description" content="Explore REST endpoints, authentication methods, and rate limits." />
<meta name="twitter:image" content="https://example.com/images/api-square-icon.png" />
Safe Zone Architecture: Avoiding Mobile Truncation
Because Twitter’s mobile and desktop apps apply subtle corner radii and UI overlays, you must design your graphics within a Central Safe Zone:
- Canvas Width & Height: 1200 × 628 px.
- Safe Zone Grid: 1000 × 500 px centered in the frame.
- Padding Guidelines: Maintain at least 100 px padding on the left and right borders, and 65 px padding on the top and bottom borders.
- Avoid Bottom-Left Crowding: Twitter overlays the root domain name in a translucent pill in the bottom-left corner of the image.
For a comprehensive multi-platform dimension breakdown, consult our Social Media Image Dimensions Cheat Sheet.
Multi-Framework Implementation
1. Next.js App Router (layout.tsx / page.tsx)
import type { Metadata } from 'next';
export const metadata: Metadata = {
title: 'Cloud Observability Platform',
description: 'Full-stack distributed tracing and performance metrics for modern architectures.',
twitter: {
card: 'summary_large_image',
site: '@CloudPlatform',
creator: '@engineering',
title: 'Cloud Observability Platform',
description: 'Full-stack distributed tracing and performance metrics for modern architectures.',
images: [
{
url: 'https://example.com/og/cloud-1200x628.png',
alt: 'Cloud Observability Dashboard Architecture',
},
],
},
openGraph: {
images: ['https://example.com/og/cloud-1200x628.png'],
},
};
For a complete guide to Next.js metadata, read our Next.js Open Graph Guide.
2. Astro Static Head Component
---
interface Props {
title: string;
description: string;
image: string;
url: string;
}
const { title, description, image, url } = Astro.props;
---
<head>
<title>{title}</title>
<meta name="description" content={description} />
<link rel="canonical" href={url} />
<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@MyBrand" />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content={image} />
<meta name="twitter:image:alt" content={title} />
<!-- Open Graph -->
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content={image} />
</head>
How Twitterbot Crawls and Validates Images
Twitter / X uses dedicated scraping bots to fetch and cache card assets:
- User-Agent:
Twitterbot/1.0 - Crawl Timeout: 3.0 seconds. If your server response time (TTFB) is slow, Twitter will skip image rendering and display a text-only link.
- HTTPS & SSL Requirements: All image assets must be served over secure HTTPS with valid certificate chains. Audit your SSL headers using our Security Headers Tool.
- Redirect Policy: Twitterbot follows up to 5 redirect hops. Ensure your URLs resolve directly to canonical targets. Check redirect chains with our Broken Links Finder.
Troubleshooting Common Twitter Card Image Bugs
1. The Image Is Not Appearing on Twitter
- Root Cause A: The image exceeds 5 MB.
- Root Cause B: The image URL is relative (e.g.
/images/hero.png) instead of absolute (https://example.com/images/hero.png). - Root Cause C:
robots.txtis blockingTwitterbot. Verify your directives with our Robots.txt Simulator & Validator. - For a complete step-by-step diagnostic, read our guide on Why Twitter Cards Are Not Showing.
2. Twitter Card vs. Open Graph Priority
If you omit twitter:image, Twitter automatically falls back to og:image. However, if you omit twitter:card="summary_large_image", Twitter defaults to a compact square thumbnail regardless of how wide your og:image is. Learn how fallbacks work in our guide on Twitter Card vs Open Graph Meta Tags.
Companion Tools & Next Steps
- Generate Twitter Cards: Build and preview verified markup with our Twitter Card Generator.
- Audit Live Webpages: Inspect live URLs for missing tags using our Open Graph Inspector.
- Structured Search Data: Unlock rich search results with our JSON-LD Schema Generator.
- AI Coding Context: Provide deterministic code structure to AI assistants with our Open Knowledge Format (OKF) Generator.
Ensure your Twitter / X previews look pixel-perfect across all devices today!