Social Media

Optimize Images & Videos for Twitter / X - Size Guide 2026

Make your tweets stand out with perfectly sized media.

Twitter / X Image Sizes

TypeDimensionsAspect RatioMax SizeFormat
In-Stream Image1200 x 67516:95 MB (photos), 15 MB (GIFs)JPG, PNG, GIF, WebP
Header / Banner1500 x 5003:15 MBJPG, PNG
Profile Picture400 x 4001:12 MBJPG, PNG
Card Image (Summary)800 x 4181.91:15 MBJPG, PNG, GIF, WebP
Card Image (Large)1200 x 6281.91:15 MBJPG, PNG, GIF, WebP

Twitter / X Video Specs

TypeResolutionMax DurationMax File SizeBitrateFormat
Tweet Video1920 x 10802 min 20 sec (140 sec)512 MB5-6 MbpsMP4 (H.264)
Twitter/X Ad Video1200 x 1200 or 1920 x 10802 min 20 sec1 GB6 MbpsMP4, 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.

Frequently 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 Mac

Free Online Tools

Resize, compress, and convert images right in your browser. No uploads, no signups.

100% Free

Try Free Tools

Related Tools & Guides