Video bitrate calculator
Find the bitrate to encode at so a video fits a target file size.
- Free
- No upload
- No watermark
- No sign-up
How to use the bitrate calculator
- 1
Enter the target file size, or pick a common limit.
- 2
Enter the video's duration and the audio bitrate.
- 3
Use the video bitrate it gives you in your encoder or compressor.
How it works
Video bitrate = (target size × 8 ÷ duration) − audio bitrate. A small allowance for container overhead is taken off first so the file lands under the limit, not just over it. For example, to fit a 2-minute clip into 10 MB with 96 kbps audio: 10 MB is 80,000 kilobits, divided by 120 seconds is about 667 kbps in total, minus overhead and audio leaves about 560 kbps for the video.
If the result is very low, the picture will be blocky. Shorten the clip, lower the resolution (720p needs far less than 1080p) or lower the frame rate, then calculate again.
Common size limits
Limits change, so check the service before you rely on one.
- 20 MB: Discord uploads without Nitro.
- 25 MB: Gmail attachments.
- 50 MB, 100 MB and 500 MB: common limits for forms and chat apps.
- 100 MB: WhatsApp videos sent as video; 2 GB: WhatsApp documents.
YouTube's recommended upload bitrates
For SDR uploads YouTube recommends about 8 Mbps for 1080p at 24 to 30 fps and 12 Mbps at 60 fps, 5 and 7.5 Mbps for 720p, and 35 to 45 Mbps for 4K at 30 fps (53 to 68 at 60 fps). Uploading higher than this does no harm; YouTube re-encodes everything. For a size-limited upload, lower resolution beats a starved bitrate: 720p at 2 Mbps usually looks better than 1080p at 2 Mbps, because each pixel gets more data. Everything is calculated in your browser, so you can try as many combinations as you like.
Questions, answered.
What bitrate fits a video into Discord's 20 MB?
It depends on length: about 1,300 kbps total for 2 minutes, 2,600 kbps for 1 minute, 5,200 kbps for 30 seconds. Enter your length for the exact number.
How do I use the result in ffmpeg?
Use two-pass encoding with -b:v set to the video bitrate (for example -b:v 560k) and -b:a for audio; two-pass hits the target size most reliably.
Why leave room for overhead?
MP4 and other containers add indexes and headers, typically 1 to 2% of the file. Without that margin the file can end up just over the limit.
What audio bitrate should I use?
128 kbps AAC is good for music; 64 to 96 kbps is fine for speech and saves room for the picture.
Is a higher bitrate always better?
Up to a point. Past the bitrate a resolution needs, the file grows without visible gain.
More free creator tools
- Video file size calculatorEnter a video's length and bitrate to see how large the file will be.
- Aspect ratio calculatorWork out an aspect ratio from a resolution, or the width or height that keeps a ratio.
- Social media video sizesRecommended resolutions, aspect ratios and length limits for every major platform, in one table.
- Screen recorderRecord your screen, a window or a browser tab with your microphone and an optional webcam bubble, right in your browser.
- Create ZIPBundle photos, videos, documents or a whole folder into one ZIP to send or upload, without installing anything and without uploading your files.
- Unzip FilesOpen a ZIP on any device, see what's inside and save just the files you need, without installing an app or uploading the archive.