Compress Video for Twitter (X)

Bring a video within X’s upload rules — 512MB max, 2:20 for non-Premium accounts — compressed locally in your browser.

Runs locally Free
Drop a video here to compress it for Twitter / XMP4, MOV, WebM or MKV — compressed on your own device

About compressing video for Twitter / X

X (Twitter) accepts videos up to 512MB, but the binding constraint for most people is duration: non-Premium accounts are capped at 2 minutes 20 seconds (140s). Premium raises the ceiling substantially. Compression fixes the size problem; if your clip is too long, trim it first — this page warns you when the duration exceeds 2:20 and points to the trimmer.

X recommends H.264 + AAC MP4, 30/60fps, up to 1920×1200 — exactly what this tool outputs. Files are processed entirely in your browser; note that in-memory processing caps input size at roughly 1GB depending on your device, so for very large recordings export a smaller master first.

Need a custom size instead? The general-purpose Video Compressor lets you target any size or quality, and this guide explains the bitrate math behind size limits.

Frequently asked questions

What are X’s video upload limits?

Up to 512MB per video, maximum 2:20 (140 seconds) for standard accounts. Premium subscribers can post much longer videos (hours, with higher size caps on web). Recommended format is MP4 with H.264 video and AAC audio.

My video is under 512MB but X rejects it — why?

Most rejections are duration (over 2:20 without Premium) or codec related. Re-encoding to H.264 + AAC MP4 — which this tool always outputs — fixes codec issues; for duration, cut the clip with a video trimmer first.

Does compressing improve how X displays my video?

X re-encodes everything you upload. Uploading a clean, reasonably-bitrate H.264 source gives its transcoder the best input — and uploads dramatically faster than pushing a 500MB original.

Is the video uploaded to this site?

No. Everything runs locally in your browser via WebCodecs; the file never leaves your device.