Skip to content

Compress video for X (Twitter)

Fit X's 512 MB upload limit with web-friendly H.264 MP4 output. The X (Twitter) preset targets 500 MB, uses automatic resolution, and checks actual output size locally on your device.

X (Twitter) video compressor

MP4 output · 500 MB target · Audio preserved when present

X also limits non-subscribers to 140 seconds. Use Customize size to trim longer clips.

Select a video to get started

Need a different limit or a shorter clip? Customize size


Buy Me a Coffee

Reduce a video that is too large to send with X (Twitter). Localsquash targets 500 MB (512 MB upload limit) with automatic H.264 MP4 settings and audio when present, then checks actual file size. Compression runs on your device without uploading the video.

How to compress a video for X (Twitter)

  1. Select your video.
  2. If the clip is longer than 140 seconds, open Customize size and trim it.
  3. Click Compress for X (Twitter) to encode an MP4 under 512 MB.
  4. Review the result, download it, and attach it to X yourself. If the original already fits, you can keep it unchanged. Oversized results are marked.

X also limits non-subscribers to 140 seconds. Use Customize size to trim longer clips.

Inputs must be below 2,000 MB; browser memory may impose lower limits. HDR tone mapping is unsupported.

X (Twitter) video size limit

X documents that accounts without a subscription can upload videos up to 140 seconds long with a maximum file size of 512 MB.

Limit reference checked November 13, 2026: X Help Center: How to share and watch videos. Account limits may change. Not affiliated with X (Twitter).

Still too large to send?

  • Check the actual downloaded size against the allowance shown by X (Twitter).
  • Use Customize size to choose a smaller budget if your account or recipient has a lower limit.
  • Trim unnecessary footage to preserve more detail within the same size budget.
  • Duration is the more common blocker: trim to 140 seconds without a subscription.

Technical specifications

Localsquash video processing specifications
EngineFFmpeg compiled to WebAssembly (ffmpeg.wasm core 0.12.10, single-threaded), running in your browser tab
InputsMP4, MOV, WebM, MKV, AVI (decodable by the bundled FFmpeg build)
Video outputH.264 (libx264, yuv420p) in MP4 with faststart
Audio outputAAC; can be removed in target-size mode
Quality controlCRF 0–51 with x264 presets from ultrafast to veryslow
Size controlTwo-pass target size in MB (1,000,000 bytes) or MiB (1,048,576 bytes); inputs below 2,000 MB
Not supportedHDR tone mapping, subtitle tracks, batch queues
MemoryLimited by the browser and device; phones fail sooner on large files
NetworkAbout 32 MB of engine files downloaded from cdn.jsdelivr.net when you select a file; your media is never sent

How to verify nothing is uploaded

  1. Open your browser’s developer tools and select the Network tab.
  2. Select a file and wait until the engine status shows Ready.
  3. Optionally switch the device offline, then start compression. It still completes because encoding runs locally.
  4. Review the requests: page assets, analytics, and ffmpeg-core files appear, but no request contains your media.

X (Twitter) video FAQ

What are X's video upload limits?

X documents that accounts without a subscription can upload videos up to 140 seconds long with a maximum file size of 512 MB. Subscribers can upload longer and larger videos.

Can Localsquash trim a video to 140 seconds?

Yes. Open Customize size, set the trim start and end so the clip is 140 seconds or shorter, and compress. The selected file carries over between tools in the same tab.

What format does the X (Twitter) compressor produce?

An H.264 MP4 with AAC audio when the source has audio. Resolution is chosen automatically without upscaling, and the actual output size is checked before download.

Is my video uploaded to X (Twitter) or Localsquash?

No. Compression runs locally in your browser using FFmpeg WebAssembly, and the video never leaves your device. Download the MP4 and send it through X (Twitter) yourself. Localsquash is not affiliated with X (Twitter).