How to Convert Video for Twitter/X: Format, Size & Length Guide
Guide to optimizing video for Twitter/X. Covers supported formats, the 512MB limit, recommended resolution, aspect ratios, video length limits, and encoding settings for best quality.
Alex Thompson·February 19, 2026·10 min read
Getting Your Videos Right for Twitter/X
Twitter (now X) processes billions of video views every month, making it one of the most important platforms for video content alongside YouTube, TikTok, and Instagram. But uploading video to X is not as simple as dragging and dropping — the platform has specific format requirements, size limits, and encoding preferences that determine whether your video looks sharp or becomes a blocky mess after processing.
X re-encodes every video you upload, regardless of the input format. This means your upload settings directly influence the final quality. Upload too-compressed video, and X's re-encoding compounds the quality loss. Upload overly large raw footage, and you hit size limits or waste time on slow uploads.
This guide covers the exact settings that produce the best-looking video on X, along with solutions for every common problem — format incompatibility, files too large, wrong aspect ratio, and videos that look great on your computer but terrible after uploading.
Phone displaying Twitter/X feed with video content playing inline
Note that X's specifications have changed several times since the rebrand from Twitter. The values above reflect the latest requirements as of early 2026. For a broader comparison of social media platforms, see our social media video specs 2026 guide.
Pro Tip: X displays video differently depending on the aspect ratio. 16:9 landscape videos get the largest display area in the feed, filling the full width of the post. 1:1 square videos also display well. Vertical 9:16 videos display with significant pillarboxing on desktop, reducing their visual impact. If your audience is primarily on desktop, use 16:9. If mobile-first, 1:1 is a good compromise.
Recommended Encoding Settings
These settings produce the best quality after X processes your upload:
Pro Tip: Always upload the highest quality version you can within X's limits. X re-encodes every video, so starting with a high-quality source (CRF 18 or lower) gives X's encoder more to work with, resulting in a better final product. Think of it like photocopying — a photocopy of a sharp original looks better than a photocopy of a photocopy.
Handling the Duration Limit
Free accounts are limited to 2 minutes 20 seconds (140 seconds). If your video is longer, you have several options:
X Premium subscribers can upload videos up to 60 minutes (Premium) or 4 hours (Premium+), with an 8 GB file size limit. If you regularly post long-form content, this removes the friction entirely.
Reducing File Size for X
If your video exceeds 512 MB (free) or you want faster uploads:
The best video settings for Twitter/X in 2026 are:
Format: MP4 with H.264 High Profile
Resolution: 1920x1080 (1080p) for maximum quality
Frame rate: 30 fps for most content, 60 fps for fast action
CRF: 18 (upload high quality; X will re-encode)
Audio: AAC at 192 kbps, 44.1 kHz sample rate
Pixel format: yuv420p (mandatory)
Duration: 140 seconds (free) or up to 4 hours (Premium+)
File size: Under 512 MB (free) or 8 GB (Premium)
Use our video converter for format conversion, the video compressor for size reduction, and the video trimmer for cutting to length. With the right encoding settings, your X videos will look sharp, load fast, and stand out in the feed.