Black Friday: 50% off every paid plan with code BF50. Ends 5 December.

See prices

Free tool

Bitrate and file size calculator.

Work out how big a video file will be from its bitrate and length, which bitrate keeps it under a size limit, such as an email attachment or an upload cap, or how many minutes fit in a size. Drop a video to read its length and average bitrate.

Need a custom tool, app or website? Contact us 
File size-

Quality check: bits per pixel

Length

This is plain arithmetic in your browser. Nothing is sent anywhere.

How it works

Three steps, nothing to install.

01 / Length

Enter the length

Type the hours, minutes and seconds of the video.

02 / Rate

Enter the bitrate or the size

Give the video bitrate to get the size, or the size to get the bitrate.

03 / Answer

Read the result

The answer updates as you type. Use the bitrate in your recorder, editor or compressor.

Guide

How to calculate video file size, from bitrate and length.

A video bitrate calculator works out how big a video file will be from its bitrate and length, or which bitrate you need to keep a video under a size limit. Bitrate is how much data each second of video uses, so the size is simply the bitrate times the number of seconds. This calculator adds the sound on top, turns bits into megabytes for you, and keeps a little room spare for the file's container when you aim for a target size.

How to use the bitrate calculator

  1. Pick a mode: File size from a bitrate, Bitrate for a target size, or Length that fits a size.
  2. Type the length of the video in Hours, Minutes and Seconds. Or press "Read a video's length and bitrate", or drop a video on the tool, to fill in its length and average bitrate.
  3. Type the Sound bitrate in kbps. If you do not know it, 128 is a common value for AAC sound.
  4. In the first mode, type the Video bitrate in Mbps or kbps. In the second, type the Target size in MB or GB, or tap a size such as 25 MB. In the third, type both the bitrate and the size.
  5. Read the answer. It updates as you type, with the details under it. Copy answer copies it as one line, and Copy link gives a link with your numbers.

The file size formula

File size in bytes = (video bitrate + sound bitrate) x seconds / 8. You divide by 8 because bitrates are counted in bits and file sizes in bytes, and there are 8 bits in a byte. The calculator counts 1 MB as one million bytes.

Take the starting values on the page: a 5 minute video at 8 Mbps with 128 kbps sound. Five minutes is 300 seconds.

  • Video: 8,000,000 bits x 300 = 2,400,000,000 bits. Divided by 8, that is 300,000,000 bytes, or 300 MB.
  • Sound: 128,000 bits x 300 = 38,400,000 bits, which is 4.8 MB.
  • Total: about 305 MB.

The sound is small next to the picture at this bitrate. It matters much more when you squeeze a video into a small size, as the next example shows.

Finding the bitrate for a size limit

In Bitrate for a target size, the sum runs the other way. The target size is turned into bits and 5 percent of it is kept spare, because the MP4 or MOV container adds a little data of its own. What is left is divided by the seconds, and the sound bitrate is taken off. You can change the spare room in "Spare room for the container".

Say you need a 5 minute video under 25 MB. 25 MB is 200,000,000 bits. Divided by 300 seconds, that is about 666,667 bits a second for everything, and with 5 percent kept spare, 633,333. Take off 128,000 for the sound and about 505,333 is left, or 0.51 Mbps for the video. That is a low bitrate for a full HD picture, so text in a screen recording may look soft. Some ways to get more out of it:

  • Make it shorter. The same 25 MB for a 60 second clip allows about 3.04 Mbps, six times as much.
  • Lower the sound bitrate. For speech, 64 kbps instead of 128 gives the picture 64,000 more bits every second.
  • Make it smaller. A 1280 x 720 picture has fewer than half the pixels of 1920 x 1080, so each pixel gets more than twice the data at the same bitrate.

If the answer says Too small, the sound alone would fill the size. A 1 hour video in 25 MB leaves about 55,556 bits a second in total, less than the 128 kbps sound needs.

How long fits in a size

Length that fits a size divides the size by the bitrate. At 8 Mbps with 128 kbps sound, 4 GB is 32,000,000,000 bits; keep 5 percent spare and divide by 8,128,000 bits a second, and about 3,740 seconds fit, or 1 h 2 min 20 s.

Reading your own video

"Read a video's length and bitrate" opens a video in the browser only to read its length and picture size; the file is not uploaded or changed. Its size in bits divided by its length gives the average bitrate of picture and sound together. A 5 second clip of 594,221 bytes is 4,753,768 bits over 5 seconds, about 0.95 Mbps. The Video bitrate box gets that number less your sound bitrate. If the browser cannot play a file, type its length by hand.

Bits, bytes and the units on the page

UnitMeansUsed for
kbps1,000 bits a secondSound bitrate, such as 128 kbps
Mbps1,000,000 bits a secondVideo bitrate, such as 8 Mbps
MB1,000,000 bytes, or 8,000,000 bitsFile size
GB1,000 MBLarge file sizes; the answer switches to GB above 1,000 MB

A quick check in your head: 8 Mbps is 1 MB every second, so a minute at 8 Mbps is about 60 MB. A Mac's Finder counts MB the same way as this page. Windows File Explorer counts 1 MB as 1,048,576 bytes, so it shows a slightly smaller number for the same file.

Scaling a bitrate to a new size or frame rate

If a bitrate looks good at one size, you can scale it for another by keeping the data per pixel the same. 8 Mbps at 1920 x 1080 and 30 frames a second is 8,000,000 / (1920 x 1080 x 30), about 0.13 bits per pixel per frame. A 3840 x 2160 video has four times the pixels, so the same quality needs about four times the bitrate, around 32 Mbps. Doubling the frame rate to 60 roughly doubles it again. Real encoders do a bit better than this on still scenes, so treat it as a starting point and check the result by eye. "Quality check: bits per pixel" under the answer does this sum for the picture size and frame rate you pick.

Screen recordings often have large areas that do not change, which encoders store cheaply. Camera footage with movement in every frame needs more. When you have the bitrate you want, set it in your editor, or let the video compressor do the work. To change the picture size first, use the video resizer.

Questions

Good to know.

How is the size worked out?

Size = (video bitrate + sound bitrate) x seconds, divided by 8 to turn bits into bytes. One megabyte here is one million bytes.

Why is my real file a bit larger?

The container (MP4 or MOV) adds a small amount of data on top of the picture and sound. The target size and length modes keep 5 percent of the size spare for it, and you can change that.

What is a good bitrate for a screen recording?

Screen recordings with still areas need less than camera footage at the same size. Check the result by eye: if text looks soft or blocky, raise the bitrate.

Can I make a video under 25 MB for email?

Yes. Choose Bitrate for a target size, enter 25 and the length, and use that bitrate. Or let the video compressor do it for you.

What does Mbps mean?

Megabits per second: how much data each second of video uses. 8 Mbps is 8 million bits, or 1 megabyte, every second.

Is anything sent anywhere?

No. The page does the sum in your browser.

How do I find the bitrate of a video I already have?

Divide its size by its length. A 150 MB file that runs 2 minutes is 150 x 8 = 1,200 megabits over 120 seconds, about 10 Mbps for picture and sound together.

Does a higher bitrate always mean better quality?

Up to a point. More bits let the encoder keep more detail, but past a certain rate the picture stops looking any better and only the file grows. The codec, the size and the content all play a part.

Why is my exported file a different size from the answer?

Many encoders treat the bitrate as an average, so busy scenes use more and still scenes less. The container also adds a little. The answer is a close estimate, not an exact size.

What is the difference between Mbps and MBps?

Mbps is megabits a second and MBps is megabytes a second. One megabyte is 8 megabits, so 8 Mbps equals 1 MBps.

How many minutes of video fit in 1 GB?

Pick Length that fits a size, type the bitrate and 1 GB. At 8 Mbps with 128 kbps sound and 5% spare, about 15.6 minutes fit.

How do I find the bitrate of my video?

Press Read a video's length and bitrate and pick the file. The page divides its size by its length to give the average.

Listed on

Listed on JustMacAppsMotionShine on Mac App IndexMotionShine on ScrollLaunchMotionShine featured on StartupBaseFeatured on FazierFeatured on Twelve ToolsMotionShine - Featured on Smol Launch