Skip to main content

Size · Time · Bitrate

How to compress a video without losing quality you can see

How to compress a video for email, Discord or any limit: current size limits, the one formula behind every result, and measured quality at each size.

13 min readGuides
Size · Time · Bitrateazelify
Guides

How to compress a video without losing quality you can see

Key takeaways

  • File size is bitrate times length, so cutting seconds is the only compression that costs no quality.
  • Read on 30 November 2026: Gmail allows 25 MB of attachments and Discord 20 MB without Nitro.
  • A calm 60-second 1080p clip went from 40 MB to under 8 MB for about one point of SSIM.
  • Email attachments grow by about a third in transit, so aim well below the limit.

To compress a video, decide the size it has to fit under, divide that size by the video's length to get a bitrate, and re-encode to H.264 at that bitrate, lowering the frame size only if the bitrate is too thin for it. A browser tool does the arithmetic for you. This guide gives the quick way first, then the current limits for email and chat apps, the one formula that explains every result, and measurements from a real clip so you can see what quality costs.

The quick way: compress a video in four steps#

With the free video compressor, the job is short:

  1. Drop the video. The tool reads its length, frame size and current size. Nothing is uploaded; the work happens in the browser tab.
  2. Pick the size to stay under. Choose 8, 10, 20, 25 or 50 MB, whichever is just below the limit where you're sending it.
  3. Pick the largest frame. 1080p, 720p or 480p. The expected size is shown before you press anything.
  4. Compress and download. You get an H.264 MP4 with AAC sound, under the size you picked.

The tool aims 10% under your target, because an encoder never lands exactly on the number it's given and the file's wrapper takes some room too. If the file still comes out over, it makes it again with fewer bits or a smaller frame, and tells you if it can't. It also never spends more bits than the original did, and scales that ceiling down with the frame, so compressing can't make a file bigger and a smaller frame can land well under the limit you picked.

Two limits are worth knowing before you start. The source can be up to an hour long and 2 GB, because the browser has to read the whole file. And if a target would leave the picture less than 250 kilobits per second, the tool says the target can't be met rather than handing you something unwatchable.

Size limits where people send video#

Most people compress because something refused the file. These are the published limits, read on 30 November 2026. They change, so trust the message on your screen over any table, including this one.

WherePublished limitWorth knowing
Gmail, personal account25 MB of attachments per emailA bigger file becomes a Google Drive link
Gmail at work or schoolSet by the administratorAsk whoever runs your email
Discord without Nitro20 MB per fileLarger limits are being tested with some users
GitHub issues, free plan10 MB for a video100 MB on a paid plan
YouTube256 GB or 12 hours15 minutes until the account is verified

Gmail's help page gives 25 MB for personal accounts and says a larger file is replaced by a Drive link automatically.[1] Discord's help page, updated on 30 September 2026, gives 20 MB for people without Nitro and adds that it is testing other limits with some users.[2] Older guides say 8 or 10 MB for Discord; those were true once. GitHub allows 10 MB videos in a repository owned by a free-plan account and 100 MB on a paid plan, and recommends H.264 for the widest playback.[3]

Leave room under an email limit#

Email attachments travel as text. The encoding that turns binary files into text, base64, makes them about 33 percent larger than the original bytes.[4] Whether a given provider counts the size before or after that step isn't always documented, and the person receiving the email may have a lower limit than you do. If an email matters, aim for 10 to 18 MB rather than exactly 25, or send a link.

Don't compress before YouTube#

A video site re-encodes whatever you give it. YouTube accepts files up to 256 GB and publishes recommended upload bitrates: 8 Mbps for 1080p and 5 Mbps for 720p at ordinary frame rates, with more for 48 to 60 frames a second.[5][6] Uploading a file squeezed far below those numbers means the site compresses something that's already been compressed, and both losses show. Compress for chat and email; upload the good copy to video sites.

The formula behind every compressed video#

File size is bitrate multiplied by time. Bitrate is how many bits the file spends per second, and it's the only thing that decides size. Everything else (frame size, codec, settings) decides how good that many bits will look.

Written out:

size in megabits = bitrate in megabits per second × seconds

There are 8 bits in a byte, so a 25 MB target is about 200 megabits. Over 60 seconds, that's 3.3 megabits a second to share between the picture and the sound. Over ten minutes it's a third of a megabit a second, which is very little.

Fig. 01
How a target size becomes a picture bitrate, as the free compressor works it out.The target size in megabytes is turned into bits and reduced by ten percent for the container and the encoder's swing. Dividing by the length in seconds gives the total bitrate. Subtracting 192 kilobits per second for sound leaves the picture's bitrate, which is capped at what the source itself used.
Target sizeFor example 20 MB
Minus 10%Container and encoder swing
Divide by secondsTotal bitrate
Minus 192 kbpsAAC sound
Picture bitrateNever above the source
  1. 01 → Target sizeFor example 20 MB
  2. 02 → Minus 10%Container and encoder swing
  3. 03 → Divide by secondsTotal bitrate
  4. 04 → Minus 192 kbpsAAC sound
  5. 05 → Picture bitrateNever above the source
How a target size becomes a picture bitrate, as the free compressor works it out.

Here is what each target leaves for the picture after the sound and the margin, rounded:

LengthUnder 10 MBUnder 20 MBUnder 25 MBUnder 50 MB
30 seconds2.3 Mbps4.8 Mbps6.1 Mbps12.4 Mbps
1 minute1.1 Mbps2.3 Mbps3.0 Mbps6.1 Mbps
2 minutes0.4 Mbps1.1 Mbps1.4 Mbps3.0 Mbps
5 minutestoo thin0.3 Mbps0.4 Mbps1.1 Mbps
10 minutestoo thintoo thintoo thin0.4 Mbps

Two things follow. A short clip compresses to almost any limit without trouble. A long one can't be saved by settings: past a few minutes the honest choices are to cut it, split it, or share a link.

What quality costs: a measured example#

Tables of bitrates don't tell you how a video will look, so we measured one. The source is 60 seconds of a public-domain talking-head video (a White House weekly address from July 2014) at 1920 × 1080, encoded at 40.1 million bytes. We compressed it with FFmpeg's x264 encoder in two passes at the bitrates above, at three frame sizes, then scaled each result back to 1080p and compared it with the source using SSIM, a similarity score where 1 means identical.[7]

TargetPicture bitrateFile sizeSSIM at 1080pSSIM at 720pSSIM at 480p
8 MB814 kbps7.3 MB0.98980.98930.9880
10 MB1,066 kbps9.1 MB0.99100.99010.9888
20 MB2,324 kbps18.1 MB0.99440.99240.9910
25 MB2,953 kbps22.6 MB0.99550.99310.9917

Read that first one carefully, because it's a kind one: a man sitting still in front of a steady background, which is close to the easiest thing there is to compress. Three conclusions:

  • Going from 40 MB to under 8 MB cost about one point of SSIM. For talking-head video, a small file can look very close to the original.
  • Shrinking the frame didn't help here. At every target, staying at 1080p scored highest. With so little motion there were enough bits for the full frame.
  • Doubling the size bought less each time. From 10 to 20 MB gained 0.0034. Past a point you're spending megabytes nobody will see.

Footage with fast motion, water, confetti, film grain or a handheld camera behaves differently, because each frame shares little with the one before it. So we measured three more clips, 60 seconds each, all from NASA's public video library: an edited explainer with cuts and graphics, documentary footage of a cargo plane being unloaded (a 720p original), and slow, finely detailed footage from the space station. The numbers are the best of the 1080p, 720p and 480p results at each target.[7]

Footage8 MB20 MB25 MB
Talking head, still camera0.98980.99440.9955
Cargo plane unloaded, 720p source0.97280.98300.9847
Edited explainer with cuts0.96970.98490.9872
Space station footage0.92550.96460.9703

Four things follow from it.

  • What you film decides more than the setting does. At 8 MB the talking head scored 0.9898 and the space station 0.9255. At 25 MB the hardest clip still didn't reach what the easiest one had at 8.
  • A smaller frame helped once in the four. For the space station at 8 MB, 720p scored 0.9255 and 1080p 0.9115. Everywhere else the full frame scored highest, so drop the frame when bits are really short and not before.
  • A hard clip can miss its size. At 8 MB the space station came out about 10 percent over target in this test, because an encoder can't go below the bits the picture needs. Any compressor can do that, so check the file you get. The free tool checks its own result, and when it's over it makes a smaller one.
  • The gain per megabyte shrinks. From 20 to 25 MB, the explainer gained 0.0023 and the talking head 0.0011.

The full results, with the bitrate, frame and size of every one of the 33 encodes, are in a CSV file (opens in a new tab).

Fig. 02
One 60-second 1080p talking-head clip, compressed to four targets (million bytes).Measured file sizes of the same 60-second clip. The source was 40.1 million bytes. Compressed for a 25 MB target it was 23.6 million, for 20 MB 19.0 million, for 10 MB 9.6 million and for 8 MB 7.7 million. All landed under their target.Source40.1million bytes25 MB target23.6million bytes20 MB target19million bytes10 MB target9.6million bytes8 MB target7.7million bytesKept: 47.4% · compressed bytes / source bytesKept at 8 MB: 19.2% · compressed bytes / source bytes
  1. Source40.1
    million bytes
  2. 25 MB target23.6
    million bytes
  3. 20 MB target19
    million bytes
  4. 10 MB target9.6
    million bytes
  5. 8 MB target7.7
    million bytes
  • Kept: 47.4% · compressed bytes / source bytes
  • Kept at 8 MB: 19.2% · compressed bytes / source bytes
One 60-second 1080p talking-head clip, compressed to four targets (million bytes).

A worked example: a screen recording for a chat app#

Say you have a screen recording of a bug: 3 minutes 20 seconds long, 1080p, 180 MB, with your voice explaining it. It has to fit under 20 MB.

Start with the formula. Twenty megabytes, less the 10 percent margin, over 200 seconds leaves about 755 kilobits a second. Take off 192 for the sound and the picture gets roughly 560. That's workable for a still desktop and thin for anything that scrolls, and the text has to stay readable, so dropping to 480p is out.

Now use the second input. Watch it once and you find 40 seconds of setup at the start, a minute where you search for a file, and 20 seconds of goodbye. Cut those and the recording is 80 seconds long. The same 20 MB now leaves about 1.7 megabits a second for the picture, three times as much, at full 1080p.

The order that got there is the one to remember: work out the bitrate, cut what nobody needs, work it out again, and only then think about the frame. If the trimmed clip still hadn't fitted, the next step would have been a crop to the window with the bug in it, because a smaller picture with sharp text beats a whole desktop nobody can read.

Choosing the frame size#

Pick the smallest frame the viewer won't notice, and only when bits are short.

Keep 1080p when the picture bitrate comes out above roughly 2 Mbps for calm footage, or when the video has small text: a screen recording, a spreadsheet, subtitles burned into the picture. Text is the first thing to turn to mush when a frame shrinks.

Drop to 720p when the bitrate is around 1 Mbps and there's motion. A 720p frame has 44 percent of the pixels of a 1080p one, so each pixel gets more than twice the bits. On a phone held at arm's length, most people won't see the difference.

Drop to 480p for long videos and hard limits, where the choice is between small and smeared.

A vertical video follows the same rule by its short side: a 1080 × 1920 Short brought to 720p becomes 720 × 1280.

Fig. 03
Choosing the frame size once you know the picture bitrate.If the bitrate left for the picture is under about 250 kilobits per second, shorten or split the video or share a link. Otherwise, if the video has small text, keep the frame at 1080p. If not, and the footage moves a lot or the bitrate is near one megabit, choose 720p; otherwise keep 1080p.yesnoyesnoyesno
Is the picture bitrate below about 250 kbps?
Shorten it, split it, or share a link
Does the video have small text to read?
Keep 1080p; trim seconds instead
Lots of motion, or a bitrate near 1 Mbps?
Use 720p
Keep 1080p
  1. Is the picture bitrate below about 250 kbps?
    1. yes → Shorten it, split it, or share a link
    2. no → Does the video have small text to read?
      1. yes → Keep 1080p; trim seconds instead
      2. no → Lots of motion, or a bitrate near 1 Mbps?
        1. yes → Use 720p
        2. no → Keep 1080p
Choosing the frame size once you know the picture bitrate.

Cut seconds before you cut quality#

The formula has two inputs you control, and people forget the second. Halving the length doubles the bitrate for free, with no loss of quality at all.

  • Trim the ends. Most recordings start and finish with several useless seconds. The trim tool takes them off; our trim and crop guide explains what trimming does to quality.
  • Cut the pauses. A talking recording often carries a surprising share of silence. Removing pauses shortens it without touching a word.
  • Drop the sound if nobody needs it. In a desktop encoder that can leave the audio track out, a silent screen recording gets its sound's share of the bits back. At 192 kbps that's most of what a long clip under a small limit has to spend.
  • Crop what isn't the subject. Black bars and empty desktop cost bits. Turning a wide video vertical is one case: the crop keeps fewer than a third of the pixels.

Trim first and compress last. Every re-encode loses a little, so do the edits on the original and let compression be the final step.

Codec, container and the other settings#

Codec. The codec is the method that squeezes the pictures. H.264 (also called AVC) is the one most phones, browsers and editors can play. Newer codecs such as HEVC and AV1 can reach a similar picture with fewer bits, with the trade-off that fewer devices can play or encode them.[8] Discord, for one, lists H.264, HEVC and AV1 as playable inside MP4 files.[2] When you don't know what the other person has, H.264 in an MP4 is the safe answer, and converting to MP4 covers files that aren't there yet.

Two passes. An encoder that looks at the whole video before spending bits can save them on the still parts and spend them on the hard ones. It's slower and, for a fixed target size, usually worth it. Our measurements used two passes.

Constant quality instead of a target. Desktop encoders can aim for a quality level and let the size fall where it may. That's the better choice when you want a file to be good and don't mind how big it is. When you have a limit to fit under, a target size is the only setting that answers the question.

Frame rate. Dropping 60 frames a second to 30 halves the number of pictures. For a talking head that's invisible; for sport or a game clip it isn't.

Turning it into a GIF. This makes it bigger, not smaller: a GIF of the same seconds is many times the size of the video, as our GIF measurements show.

Zipping. Putting a video in a ZIP file barely changes it. Video is already compressed, so there's little left for a general-purpose compressor to find.

Compressing on a phone#

Phones have their own ways of shrinking a video, and they're fine when you don't need an exact size. Sending a video through a messaging app usually compresses it automatically, hard, and without telling you by how much. If the result is too soft, send the file as a document rather than as a video where the app allows it, or compress it yourself to a size the app will pass through untouched.

The free tool is built for desktop browsers. It runs on recent phones too, but the whole video is read into memory, so a long or 4K clip may fail there. For those, move the file to a computer first.

For the limits of each chat app and the fixes on a phone itself, read what to do when a video is too large to send. For a slide deck, compressing a video for PowerPoint gives the sizes.

Common problems#

The video is still too big#

The target and the limit may count differently: some places count a megabyte as 1,000,000 bytes and some as 1,048,576. Choose the next size down.

It looks blocky when people move#

The bitrate is too thin for the motion. Go down one frame size at the same target, or cut length.

The text is unreadable#

The frame was shrunk below what the text needs. Keep 1080p, trim the length, and consider zooming in on the part that matters before you compress.

The colours look flat#

Some phones record in high dynamic range. Compressors that don't convert it produce a washed-out picture. Turn HDR off before recording if you know the video is headed for chat.

The sound is out of step#

This usually comes from a recording with a varying frame rate, common in screen and phone capture. Convert the original to MP4 at a fixed rate first, then compress.

Gmail, Google Drive, YouTube, Discord, Nitro and GitHub are trademarks of their owners. Azelify isn't affiliated with or endorsed by them.

Frequently asked questions#

How do I compress a video without losing quality?#

Any size-targeted compression loses something; the aim is to lose what nobody sees. Keep H.264, stay at the original frame size if the bitrate allows, shorten the video before lowering quality, and compress once from the original.

How do I compress a video for Discord?#

Aim under the limit your account shows. Discord's help page gave 20 MB for people without Nitro on 30 November 2026. Pick the 20 MB target; the compressor lands a little below it.

How do I compress a video for email?#

Stay well below 25 MB, because attachments grow in transit and the receiving side may allow less. Ten to eighteen megabytes is a safe range. Above that, send a link.

Is it safe to compress a video online?#

It depends whether the tool uploads your file. A tool that works inside the browser tab never sends the video anywhere. You can check by watching the browser's network panel while it runs: a file that isn't uploaded doesn't show up there.

Why did my compressed video get bigger?#

The tool was set to a higher bitrate than the original used. A compressor should cap the bitrate at the source's own; the one here does.

Sources

  1. Google, Gmail Help, Send attachments with your Gmail message, support.google.com (opens in a new tab) (accessed 2026-11-30). ↩

  2. Discord, File Attachments FAQ, updated 2026-09-30, support.discord.com (opens in a new tab) (accessed 2026-11-30). ↩ ↩[2]

  3. GitHub Docs, Attaching files, docs.github.com (opens in a new tab) (accessed 2026-11-30). ↩

  4. IETF, RFC 2045: Multipurpose Internet Mail Extensions, section 6.8, www.rfc-editor.org (opens in a new tab) (accessed 2026-11-30). ↩

  5. Google, YouTube Help, Upload videos longer than 15 minutes, support.google.com (opens in a new tab) (accessed 2026-11-30). ↩

  6. Google, YouTube Help, Recommended upload encoding settings, support.google.com (opens in a new tab) (accessed 2026-11-30). ↩

  7. Our own measurement: 60 seconds of a public-domain 1080p talking-head video and three more from NASA's public video library (a 4K one brought to 1080p first; each reference re-encoded once at CRF 10), FFmpeg x264, medium preset, two passes, AAC at 192 kbps, SSIM against the source after scaling back to 1080p; one clip (accessed 2026-11-30). ↩ ↩[2]

  8. MDN Web Docs, Web video codec guide, developer.mozilla.org (opens in a new tab) (accessed 2026-11-30). ↩

Compress to 8, 10, 20, 25 or 50 MB

Pick the limit you have to fit and get an MP4 under it. Free, no upload, no sign-up, no watermark.

Compress a video

Keep reading

More in Edit video online

All guides