DEV Community

Max/Wang
Max/Wang

Posted on

I built a free tool that compresses video down to 8MB

Quick share for anyone who still needs a video under 8MB — some old forums, upload forms and bots still cap at that number even though Discord doesn't anymore.

I made a small browser tool that does exactly this: drop in a video, the target's already set to 8MB, hit compress, get an MP4 that fits. It runs entirely client-side (WebAssembly), so the file never leaves your machine.

A few things I learned building it that might save you a headache:

Length matters way more than resolution. At 8MB you're roughly looking at: 20 seconds at 1080p, 30 seconds at 720p, about a minute at 540p. Past 90 seconds it still fits, just looks rough. It's pure bitrate math — 8MB is only ~67 megabits total once you subtract a safety margin.

If it's actually for Discord: they bumped the free upload limit to 20MB back in August 2026 (it's been 8 → 25 → 10 → 20 over the years). So compress to 20MB for Discord, not 8 — that's 2.5x the bitrate budget for the same clip. Only use 8MB when something explicitly states that limit.

"Under 8MB" isn't the same number everywhere. Windows counts 1MB as 1,048,576 bytes; Mac Finder counts it as 1,000,000. A file that reads 7.6MB on Windows can show as 8.0MB on a Mac. If a site keeps rejecting your file, target 7MB instead of 8 to leave no doubt.

Link: https://squishyfile.com/8mb-video-compressor

Happy to answer questions if anyone hits a weird edge case.

Top comments (0)