Skip to content
ClipDrift
Video Editing

How to Compress a Video Without Losing Quality

Large video files are hard to share and fill up storage fast. Here is how to compress a video without losing noticeable quality, using free tools.

Updated Oct 23, 2026 6 min read

On this page

A great clip is no use if it's too big to send. Email providers cap attachment sizes, chat apps squeeze videos into a blurry mess, and a few HD downloads can fill a phone. Learning how to compress a video without losing quality you can actually see solves all of these problems.

Strictly speaking, every compression throws some data away. The trick is to remove the data your eyes won't miss. This guide explains what makes video files large, the settings that matter, and how to use free tools like HandBrake and ffmpeg to shrink files dramatically while keeping them sharp. It works for any MP4, including videos you've saved from X (formerly Twitter).

What makes a video file large?

Four things decide a video's size:

  • Resolution. More pixels per frame means more data. A 1080p frame has more than twice the pixels of a 720p frame.

  • Bitrate. How much data is used for each second of video. Higher bitrate means more detail, and a bigger file.

  • Length. Double the length and you roughly double the size.

  • Content. Fast motion, confetti, water and fine detail are harder to compress than someone talking in front of a plain wall.

Compression tools mostly work by lowering resolution and bitrate in smart ways.

Codecs and containers in plain English

An MP4 file is a container, like a box. Inside are the video and audio streams, each compressed with a codec. The most widely supported video codec is H.264, which plays on almost every phone, computer, TV and browser. Newer codecs such as H.265 (HEVC) and AV1 can make files smaller at the same quality, but not every device or app supports them yet. If you're sharing with other people, H.264 inside an MP4 is the safest choice, because you can be confident the file will simply play.

Before you compress: start with the right file

If the video came from X, download a fresh copy rather than compressing a version that has already been forwarded through chat apps. Each round of compression adds damage. Paste the post link into the X video downloader and choose the quality closest to what you need. Sometimes that alone solves the problem: picking 720p instead of 1080p gives you a much smaller file with no extra work. Our guide on managing downloaded videos when Android storage is full explains how quality affects size.

Method 1: HandBrake (Windows, Mac, Linux)

HandBrake is a free, open-source video converter and the easiest reliable way to compress video on a computer.

  1. Download HandBrake from its official website, handbrake.fr, and open it.

  2. Drag your MP4 into the window.

  3. Pick a preset from the Preset list. "Fast 1080p30" or "Fast 720p30" are good starting points.

  4. Open the Video tab. Make sure the encoder is H.264 for maximum compatibility.

  5. Choose Constant Quality and set the RF slider. Around 22 is high quality; 26 to 28 gives much smaller files that still look good on phones.

  6. Choose where to save the file at the bottom, then click Start Encode.

Choosing the resolution in HandBrake

On the Dimensions tab, you can lower the resolution. Going from 1080p to 720p usually cuts the size substantially and is hard to notice on a phone screen. For chat apps, 720p is a sensible ceiling.

Method 2: ffmpeg (command line)

ffmpeg gives you precise control. A balanced command looks like this:

ffmpeg -i input.mp4 -c:v libx264 -crf 26 -preset medium -c:a aac -b:a 128k output.mp4

  • -crf 26 controls quality. Lower numbers mean better quality and bigger files; 23 is a common default, and 28 is noticeably smaller.

  • -preset medium trades speed for efficiency. "slow" makes slightly smaller files but takes longer.

  • -b:a 128k sets the audio bitrate, which is plenty for most clips.

To also reduce resolution to 720p, add -vf scale=-2:720 before the output file name.

A good workflow is to test on a short section first. Add -t 20 to encode only the first 20 seconds, compare it with the original, then adjust the CRF value up or down before running the full file. This saves a lot of waiting when you are working with long videos.

Download any X video in seconds

Paste a post link below to save the video, GIF or image in the best quality.

Works with x.com, twitter.com, fxtwitter, vxtwitter and fixupx links.

Method 3: On your phone

iPhone

To make a smaller copy, you can export at a lower resolution from apps like iMovie, choosing a lower quality when you share or save. When sharing to Mail, iOS may also offer smaller size options.

Android

Many gallery apps include a resize or "reduce size" option when sharing a video. Google Photos and Samsung Gallery offer ways to save a smaller copy. Reputable compressor apps are another option; check their reviews and permissions first.

Mistakes to avoid

  • Compressing a compressed file. Always start from the best original. Every extra round adds blur and blockiness.

  • Going too far. Very high CRF values produce blocky, smeared video. Increase the setting in small steps.

  • Upscaling. Making a small video bigger never adds detail; it only increases file size.

  • Ignoring audio. Audio is usually a small part of the file. Don't drop it below 96k unless you have to.

  • Not checking the result. Watch the compressed version on the device people will use. A phone screen hides much more than a large monitor.

Compressing GIFs and short clips

GIFs from X already arrive as small MP4 files, because X stores them that way. They rarely need compression. If you are trying to make a small .gif instead, our guide on turning an X GIF into a real .gif file covers the right settings, and the X GIF downloader explains the format. For trimming clips before compressing, see our guide on trimming a downloaded Twitter video; shorter clips are always smaller.

Only compress and share content you own or have permission to use. You can download a fresh original anytime from the ClipDrift homepage.

FAQ

Can you compress a video without losing any quality?

Not completely, but you can remove data your eyes won't notice. Lowering resolution sensibly and using a good quality setting keeps videos looking sharp.

What is the best free tool to compress video?

HandBrake is the easiest reliable option on Windows, Mac and Linux. ffmpeg offers more control from the command line.

What CRF value should I use?

For H.264, around 23 is high quality. Values between 26 and 28 make much smaller files that still look good on phones.

Does lowering resolution reduce file size a lot?

Yes. Going from 1080p to 720p is one of the most effective ways to reduce size, and the difference is hard to see on small screens.

Why does my video look blocky after compressing?

The quality setting was too low, or the file had already been compressed several times. Start from the original and use a lower CRF or RF value.

Should I compress videos downloaded from X?

Only if you need a smaller file. Often, choosing a lower quality when downloading is simpler than compressing afterward.

Share

Available in Français · العربية