Bitrate calculator for audio and video
Plan an encode by working backwards from a target file size. Enter the size you want, the clip duration and the audio bitrate, and the tool returns the total bitrate plus the video bitrate to set — ideal for two-pass encoding to a disc, an upload limit or a streaming budget.
How it works
The target size is converted to bytes (MB and GB are treated as binary units), then to bits by multiplying by 8. Dividing by the total duration in seconds and by 1000 gives the total bitrate in kbps:
total kbps = (size in bytes × 8) ÷ 1000 ÷ duration in seconds
The video bitrate is then the total minus the audio bitrate you entered, since the file must hold both streams.
Example
Fit 700 MB into a 90-minute clip with 128 kbps audio:
- Size = 700 × 1024 × 1024 = 734,003,200 bytes → 5,872,025,600 bits
- Duration = 90 × 60 = 5400 seconds
- Total = 5,872,025,600 ÷ 1000 ÷ 5400 ≈ 1087.4 kbps
- Video = 1087.4 − 128 ≈ 959.4 kbps
| Target | Duration | Audio | Total | Video |
|---|---|---|---|---|
| 700 MB | 90 min | 128 kbps | ≈1087 kbps | ≈959 kbps |
Everything runs locally in your browser — no files or data leave your device.