Pick by clip length, measured
How do you get a video under 25 MB for Gmail or 20 MB for Discord?

Short answer
You attach the clip and the app says it is too big. Gmail allows 25 MB on a personal account, and Discord says 20 MB without Nitro. Length decides more than the preset: our 76-second 1080p clip (62.4 MB) came out of the Koldflux tool at 18.9 MB with the 720p preset, which fits both limits, and at 43.5 MB with 1080p, which fits neither. The 76-second run points to about 100 seconds of 720p in 25 MB and 80 seconds in 20 MB, but no clip that long was encoded, and a second cut of the footage points to about 65 and 53 seconds. Check the final file in bytes.
Compress a video for email: the 25 MB Gmail limit (free, in your browser)
Key takeaways
- On the 76 s clip the tool gave 8.80 MB at 480p, 18.92 MB at 720p and 43.51 MB at 1080p (1 MB = 1,000,000 bytes). 720p fits Gmail and Discord; 1080p fits neither.
- Estimated seconds that fit in 25 MB and 20 MB, from the 76-second run and rounded down: 480p 215 and 172, 720p 100 and 80, 1080p 43 and 34. None of these lengths was encoded, and another cut of the same footage came out 1.5 times heavier, so treat them as a guide, not a promise.
- To keep 1080p, a two-pass encode aimed at 97% of the limit landed at 24,384,068 bytes for 25 MB and 19,556,591 bytes for 20 MB.
- Google Help says the Gmail limit is 25 MB on personal accounts; Discord Help says 20 MB for non-Nitro users and that it is still experimenting with limits.
- The tool runs in your browser and is slow on long clips: 450 seconds for the 76 s clip at 720p on our 8-core test server. Start it before you do anything else.
If your clip is 76 seconds or shorter, use the 720p preset
Start here, because it is the shortest route and it fit both limits at the longest length tested, 76 seconds. The Koldflux Compress video tool re-encodes the clip in your browser with H.264 and AAC audio, so nothing is uploaded. We fed it a 76-second 1080p clip of 62,415,506 bytes and ran each preset once.
- Open the Compress video tool and pick 720p in the resolution menu. The presets only cap the longest side; a clip that is smaller already is not enlarged.
- Choose your video. It stays on your device, up to 100 MB per file. The first run downloads a roughly 30 MB engine, so expect a pause before anything moves.
- Wait for "Download is ready", then save the file.
- Count the bytes of the saved file (see "Why does a file under 25 MB still bounce?"; on macOS and Linux it is wc -c < file) and compare with the limit.
| Preset | Output size | Fits 25 MB (Gmail)? | Fits 20 MB (Discord)? | Time in the browser |
|---|---|---|---|---|
| 480p | 8,796,864 bytes | Yes | Yes | 268 s |
| 720p | 18,919,057 bytes | Yes | Yes | 450 s |
| 1080p | 43,511,698 bytes | No | No | 799 s |
62,415,506 bytes). Fits means under the limit in bytes.
720p came in 5.4% under Discord's 20 MB with this clip. That is not much room. A clip with more movement, or a few seconds more, can tip it over, so on Discord pick the next shorter option if you are within 10 seconds of the numbers below.

What if it runs longer than that?
A video file grows roughly in proportion to its length once the preset is fixed, but not exactly: two cuts of the same footage differ by 1.5 times in bytes per second. So divide the limit by the bytes per second a preset produced and you get an estimate of the longest clip that fits. The table does that for the 76-second clip, rounding down. Nothing longer than 76 seconds was encoded, so every figure in it is an estimate, not a tested length.
| Preset | Bytes per second | Seconds in 25 MB (estimate) | Seconds in 20 MB (estimate) |
|---|---|---|---|
| 480p | 115,809 | 215 s | 172 s |
| 720p | 249,066 | 100 s | 80 s |
| 1080p | 572,824 | 43 s | 34 s |
Limit divided by bytes per second of the 76 s run, rounded down; not tested at these lengths.
The catch is that bytes per second depend on what is in the picture. The shorter 19-second clip is cut from the same footage, and its 1080p result was 855,658 bytes per second against 572,824 for the long one. That is 1.5 times heavier from one source. The same arithmetic on the 19-second clip gives about 66 seconds of 720p in 25 MB and 53 in 20 MB, against 100 and 80 from the long clip, so treat the 720p figures as a range of roughly 65 to 100 seconds for 25 MB. Use the table to choose a preset, then confirm with the real file.
The tool's own pages for Gmail and for Discord quote longer times, such as 5 min 9 s at 720p under 25 MB, from smoother test clips that needed 485 to 519 kbps at 720p. Our footage needed about 1,992 kbps at 720p (249,066 bytes per second times 8, audio included). Both are right for their footage. If your clip is busy scenery, start from the shorter numbers; use the longer ones only after a real run.
Over about 65 seconds at 720p, or over about 150 seconds at 480p? Check the bytes of a real run first. If it is over, cut the clip into parts that each fit, or send a link instead. Google Help itself says to use Google Drive for large files like videos.
If it is only about 20 seconds, 1080p may already fit
Short clips are where people over-compress. Our 19-second clip is 22,584,379 bytes: under Gmail's 25 MB, over Discord's 20 MB. The tool's outputs for it are in the table.
| File | Size | Fits 25 MB? | Fits 20 MB? |
|---|---|---|---|
| Original, 1080p | 22,584,379 bytes | Yes | No |
| Tool 1080p | 16,325,949 bytes | Yes | Yes |
| Tool 720p | 7,150,329 bytes | Yes | Yes |
| Tool 480p | 3,191,494 bytes | Yes | Yes |
So for Discord and a clip this short, the 1080p preset is enough and the picture keeps its size. If the file is already small, though, a re-encode can come out larger than the original; the tool page warns about this and our guide on why compression made a file bigger explains the cause.
Why does a file under 25 MB still bounce?
Read the size in bytes, not in a file manager that rounds. The Koldflux numbers on this page use 1 MB = 1,000,000 bytes. Neither Google Help nor Discord Help says how it counts its MB, so aim a few percent under, which is why the script targets 97%. A file of 24.9 million bytes is safer than one that squeaks in.
The Koldflux video bitrate calculator counts differently: it treats 1 MB as 1,048,576 bytes. Typing 25 MB and 75.96 seconds with 128 kbps audio gave a video bit rate of 2,633 kbps, which aims at 26,214,400 bytes in total, 1,214,400 over 25,000,000. Our script uses 1,000,000 and stops at 97%, which gave 2,425 kbps. If you use the calculator for Gmail, type 23.8 instead of 25.
Google Help counts the total of all attachments: if the total is greater than the limit, Gmail removes the attachment and adds it as a Drive link instead. Two clips of 15 MB each are over, even though each one is under. On macOS and Linux wc -c prints the exact bytes. On Windows, PowerShell prints them with (Get-Item .\out.mp4).Length (not run here).
If 720p looks too soft and you want to keep 1080p
Then aim for the limit directly. A two-pass encode reads the whole clip once to see where the detail is, then spends a fixed bit budget across it, so the file lands close to the number you set. The small script to-limit.sh (published at /hub-media/reduce-video-size-for-email-discord/to-limit.sh and listed in the sources) does the arithmetic: it takes 97% of the limit, subtracts 128 kbps for the audio and gives the rest to the video. The 97% is our draft margin, not a platform figure. It needs bash, ffmpeg and ffprobe.
On the 76-second clip it produced 24,384,068 bytes for a 25 MB target (video 2,425 kbps) and 19,556,591 bytes for 20 MB (video 1,915 kbps), both still 1920 × 1080. The 1080p preset of the tool made 43.5 MB from the same clip, so the price of keeping 1080p is a much lower bit rate, and the picture will show it in busy scenes. An optional fourth argument sets a height: with 720 the 20 MB run gave 19,482,640 bytes.
Three commands cover it, and we ran them as written on the 76-second clip. On our server the two passes took 133 seconds for the 25 MB run.
We also fed the script bad input. A missing file, an empty file and a limit that is not a number each stopped with one line and exit code 1; so did a limit of 0.2 MB for 76 seconds, where the video bit rate would have been negative. A file that is already under the limit is left alone: the script says to send the original, because it always aims at 97% of the limit and would otherwise enlarge a smaller file (a 1.4 MB clip came out at 13.3 MB before we added that check). A file with no duration in its container, typical of browser screen recordings in webm, stops with one line telling you to remux it first. Audio-only files and an output name equal to the input name are not handled: ffmpeg refuses with its own message. File names with Cyrillic letters and a "ü" worked, and so did a clip without an audio track. One thing to know: if you save the script from a Windows editor with Windows line breaks, bash stops at its set -o pipefail line with "invalid option name" and exit code 2. Strip them with sed 's/\r$//' and it runs. All of it is in the commands log.
bash to-limit.sh clip.mp4 25 out.mp4 # two-pass, aims at 97% of 25 MB
wc -c < out.mp4 # exact bytes of the result
ffprobe -v error -show_entries format=duration -of csv=p=0 out.mp4 # seconds, should match your clip
Is 20 MB really the Discord limit?
Discord Help says: "For non-Nitro subscribers, the maximum file upload is 20MB." The same article says the company is "currently experimenting with various file upload size limits", so some users may be allowed more. Its FAQ gives the history: as of August 2026 the free limit is 20MB, up from 10MB.
One more line matters for phones. Discord says it now checks file size before compression rather than after, and that on Android "you may hit the size limit more often than you did previously, even though the stated number is higher". In our reading, what counts is the size of the file you attach, before the compression Discord applies, and Android originals are often larger. We tested no phone, and the article was last edited on September 30, 2026.
Where this stops: the limits of our test
We did not upload anything to Gmail or Discord, so we cannot promise that an attachment at 24.4 MB is accepted. Gmail Help says Google Workspace administrators set the limits for work and school accounts, and we have no figure for those. Slack, Outlook, WhatsApp and Telegram are not covered here, and we read no limit for them.
The footage is one source: scenic video from Mazandaran, Iran (CC0 on Wikimedia Commons), scaled to 1080p and joined, with a constructed 440 Hz tone as the audio track. The audio is 128 kbps AAC whatever the content, but a screen recording or a talking head will give very different bytes per second, and neither was tested. The tool's own page reports the numbers from its own smaller test clip, and we did not reproduce those. Browser compression is slow and uses your memory; we ran each preset on its own fresh page on a server with 8 cores, and your laptop may take longer.
Do it in your browser
Free Koldflux tools, no account needed.
Compress a video for email: the 25 MB Gmail limit (free, in your browser)Compress a video for Discord: the 20 MB limit (free, in your browser)Compress a video to 480p, 720p or 1080p (free, in your browser)Video bitrate calculator for a target file size
Questions people ask
How do I compress a video under 25 MB for Gmail?
Use the Koldflux Compress video tool with the 720p preset if the clip is 76 seconds or shorter; our 76-second clip came out at 18.9 MB. Longer than that is untested: the estimate is 65 to 100 seconds at 720p, so check the bytes, and for a longer clip use 480p, or a two-pass script aimed at 24,250,000 bytes. Check the saved file in bytes.
How do I reduce a video to 20 MB for Discord?
With the same tool, 720p fit our 76-second clip at 18.9 MB. Our 19-second clip fit even at 1080p, at 16.3 MB. Keep a margin, since Discord says it checks the size before compression and some users may have different limits.
How many minutes of video fit in 25 MB?
For this footage the estimate is 65 to 100 seconds at 720p and 150 to 215 seconds at 480p, so roughly one to under two minutes at 720p and up to under four at 480p. Nothing longer than 76 seconds was encoded. Busy footage with more movement will give less; other kinds of video are untested.
Is the limit 25 MB or 25 MiB?
Google Help says 25 MB and does not define it. This page counts 1 MB as 1,000,000 bytes, which is the safer reading, so a file under 25,000,000 bytes passes either way.
Why is my compressed video still too big?
The 1080p preset gave 43.5 MB from a 76-second clip, so a long clip needs 720p or 480p. If you are within a few percent of the limit, count the bytes and aim lower.
Does the tool upload my video?
No. The Koldflux tool re-encodes the clip in your browser; the first run loads an engine of about 30 MB. Files up to 100 MB are accepted.
Related
More guides on this topic
Sources and how we checked
- Gmail Help: Send attachments with your Gmail message (Google, read November 26, 2026) (checked 2026-11-26)
- Discord Help: File Attachments FAQ (Discord, article edited September 30, 2026, read November 26, 2026) (checked 2026-11-26)
- Koldflux Compress video tool (our own tool, run November 26, 2026) (checked 2026-11-26)
- Koldflux test log: tool runs, two-pass runs, edge cases and controls (our measurement, November 26, 2026) (checked 2026-11-26)
- Commands log: each published command, the command as run, its exit code and edge cases (Koldflux) (checked 2026-11-26)
- to-limit.sh: two-pass H.264 encode aimed under a size limit (Koldflux, shell script) (checked 2026-11-26)
- tool-run.cjs: drives the Compress video tool in Chromium (Koldflux, Node.js with Playwright) (checked 2026-11-26)
- build.sh and fit.py: how the two test clips were built, and the size-fit check (Koldflux, scripts) (checked 2026-11-26)
- FFmpeg wiki: Encode/H.264, two-pass encoding for a target file size (checked 2026-11-26)
- Wikimedia Commons: Mahmudabad, Mazandaran 01.ogv to 04.ogv, by Mostafameraji, CC0 (test footage) (checked 2026-11-26)
On November 26, 2026 we built two test clips from four CC0 Wikimedia Commons videos by Mostafameraji (Mahmudabad, Mazandaran 01 to 04): each scaled to 1920 × 1080 at 25 fps, H.264 CRF 27, joined, with a constructed 440 Hz tone as 128 kbps AAC audio (62,415,506 bytes for 75.96 s and 22,584,379 bytes for 19.08 s). Each was run through the live Koldflux Compress video tool in headless Chromium, once per preset (480p, 720p, 1080p), on a fresh page, plus one repeat of the 19 s clip at 480p, which gave an identical file. The two-pass script to-limit.sh (ffmpeg 6.1.1) ran on the 76 s clip at 25 and 20 MB, at 20 MB with a 720 px height, and on the 19 s clip, with eleven edge cases (the last three, added in the fix round: a file already under the limit, a file with no duration, a clip without audio). Sizes are bytes counted on the downloaded files with wc -c, durations and frame sizes come from ffprobe, and the seconds-that-fit figures are the limit divided by bytes per second, rounded down, an estimate: nothing longer than 76 s was encoded. Gmail and Discord limits are quoted from their help pages, read on the same day. We uploaded nothing to either service.