Optimize Images & Videos for Twitter / X - Size Guide 2026
Make your tweets stand out with perfectly sized media.
Twitter / X Image Sizes
| Type | Dimensions | Aspect Ratio | Max Size | Format |
|---|---|---|---|---|
| In-Stream Image | 1200 x 675 | 16:9 | 5 MB (photos), 15 MB (GIFs) | JPG, PNG, GIF, WebP |
| Header / Banner | 1500 x 500 | 3:1 | 5 MB | JPG, PNG |
| Profile Picture | 400 x 400 | 1:1 | 2 MB | JPG, PNG |
| Card Image (Summary) | 800 x 418 | 1.91:1 | 5 MB | JPG, PNG, GIF, WebP |
| Card Image (Large) | 1200 x 628 | 1.91:1 | 5 MB | JPG, PNG, GIF, WebP |
Twitter / X Video Specs
| Type | Resolution | Max Duration | Max File Size | Bitrate | Format |
|---|---|---|---|---|---|
| Tweet Video | 1920 x 1080 | 2 min 20 sec (140 sec) | 512 MB | 5-6 Mbps | MP4 (H.264) |
| Twitter/X Ad Video | 1200 x 1200 or 1920 x 1080 | 2 min 20 sec | 1 GB | 6 Mbps | MP4, MOV |
Recommended Compression Settings for Twitter / X
Image Compression
- Quality Level
- 85-90%
- Best Format
- JPG for photos, PNG for screenshots/graphics
Video Compression
- Codec
- H.264 High Profile
- Video Bitrate
- 5-6 Mbps
- Audio Bitrate
- 128 kbps AAC
Quick Tips for Twitter / X
Use 1200 x 675 (16:9) for in-stream images. Twitter crops images in the timeline — 16:9 displays without cropping.
Keep GIFs under 15 MB and shorter than 60 seconds. Twitter compresses large GIFs heavily, making them look blocky.
For header images, keep text and key elements centered. About 60px on each side gets cropped on mobile.
Tweet videos are limited to 2 minutes 20 seconds (140 seconds). Keep important content in the first 10 seconds.
Use PNG format for screenshots with text — Twitter compresses JPGs and can make text unreadable.
Free Tools to Optimize for Twitter / X
Use our free browser-based tools to resize, compress, and optimize your media for Twitter / X. No uploads, no signups — 100% private.
Free Image Resizer
Resize images to the exact Twitter / X dimensions with one-click presets. Batch process up to 10 images.
Resize NowFree Image Compressor
Reduce image file sizes by up to 80% to meet Twitter / X size limits without visible quality loss.
Compress NowVideo Compressor
Compress videos for Twitter / X with optimal codec and bitrate settings. Save space without losing quality.
Compress VideoFrequently Asked Questions
What is the best image size for Twitter/X?
For in-stream photos, use 1200 x 675 pixels (16:9 aspect ratio). This displays without cropping in the timeline. For multi-image tweets, Twitter uses different crops — 16:9 for two images, varied crops for three or four.
What is the Twitter/X header size?
The header (banner) image should be 1500 x 500 pixels (3:1 aspect ratio). Keep important elements in the center since the edges are cropped on mobile. Maximum file size is 5 MB.
What is the maximum Twitter/X video length?
Regular tweets can contain videos up to 2 minutes and 20 seconds (140 seconds). The maximum file size is 512 MB. Use MP4 format with H.264 encoding. Twitter Ads can be slightly longer depending on the ad format.
Does Twitter/X compress images?
Yes, Twitter compresses all uploads. JPG images over about 900 KB get noticeably compressed. To minimize quality loss, upload images at the exact recommended dimensions and keep file size under 1 MB. PNG files under 5 MB are preserved better than JPGs for graphics with text.
Need More Power?
Compress videos, photos & audio. HEVC, WebP, AVIF, FLAC support. Batch process thousands of files.
$49 one-time
Get MediaOptim for MacFree Online Tools
Resize, compress, and convert images right in your browser. No uploads, no signups.
100% Free
Try Free Tools