Toolvito

Works on this device

Video Size & Bitrate Calculator

Find how large a video file will be, the bitrate that makes it fit a size, or how long a card or a disk can record. Type the bitrate of each stream in kbit/s or Mbit/s, and see the size in MB, MiB, GB and megabits.

Enter your values

How large a video file or a recording will be: the bitrate of each stream times the length.

Your values

How long the video plays, or how long the recording runs.

The share that the file format (MP4, MKV, MPEG-TS) adds for its headers and indexes. It depends on the format and the streams. Leave 0 to count the streams only.

Streams in the file

One row for each stream of the file: the video and each audio track. Use the average bitrate of each stream.

More options

For security cameras or several files: how many recordings run at the same time at these bitrates.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use the calculator

  1. Choose what you want to work out in the menu at the top.
  2. For a file size, type the length of the video and one row for each stream: the video, then each audio track, with its bitrate. Choose Add a stream for more audio tracks.
  3. If you know the share that the file format adds for its headers and indexes, type it as Container overhead. Leave 0 to count the streams only.
  4. For security cameras, open More options and type how many cameras record at the same time.
  5. Choose Calculate. Change the unit of a result with its menu. The table under the result gives the same size in bytes, MB, MiB, GB, GiB and megabits.

The formulas

  • File size in bytes = total bitrate in bits per second × length in seconds ÷ 8, then × (1 + overhead ÷ 100).
  • Bitrate for a target size: total bitrate = size in bytes × 8 ÷ length ÷ (1 + overhead ÷ 100). The video bitrate is the total less the audio bitrate.
  • Recording time = storage in bytes × 8 ÷ (bitrate × number of recordings × (1 + overhead ÷ 100)).
  • Average bitrate of a file = size in bytes × 8 ÷ length in seconds.
  • Bitrate from the picture = width × height × frames per second × bits per pixel.
  • Uncompressed video: bits per pixel = bit depth × (1 + 2 × the share of colour samples). The share is 1 for 4:4:4, 1/2 for 4:2:2, 1/4 for 4:2:0 and 0 for 4:0:0. So 8-bit 4:2:0 video has 12 bits per pixel and 10-bit 4:2:2 has 20.

Megabytes, mebibytes and megabits

  • A bit is the smallest unit. A byte is 8 bits. Bitrates are given in bits per second; file sizes in bytes.
  • MB, GB, TB use powers of 1,000: 1 MB = 1,000,000 bytes, 1 GB = 1,000,000,000 bytes. Card and disk makers use these.
  • MiB, GiB, TiB use powers of 1,024: 1 MiB = 1,048,576 bytes. Many computers count this way but still write MB and GB, so a file of 614.4 MB shows as about 586 "MB" there.
  • Mbit is a megabit, 1,000,000 bits. 1 MB = 8 Mbit. Write Mbit/s or Mbps for a bitrate and MB for a size.

Worked example

A video of 10 minutes has a video stream of 8 Mbit/s and an audio stream of 192 kbit/s. The total bitrate is 8,192 kbit/s, which is 8,192,000 bits each second. In 600 seconds that is 4,915,200,000 bits, or 614,400,000 bytes: 614.4 MB, which is 585.9375 MiB.

To fit a 10-minute video into 500 MB with 128 kbit/s of audio: 500,000,000 × 8 ÷ 600 = 6,666,667 bit/s in all, so the video can have about 6,538.67 kbit/s.

A card of 64 GB holds 64,000,000,000 × 8 ÷ 8,192,000 = 62,500 seconds of that video: 17 hours, 21 minutes and 40 seconds.

A picture of 1920 × 1080 at 30 frames per second has 62,208,000 pixels each second. Uncompressed 8-bit 4:2:2 video has 16 bits per pixel, so it needs 995,328,000 bit/s, about 995 Mbit/s.

Limits you should know

  • The calculator works with average bitrates. With a variable bitrate the real file can be a little larger or smaller, and an encoder does not hit a target exactly.
  • The container overhead is a share you type. It depends on the format (MP4, MKV, MPEG-TS) and on the streams, so the calculator has no built-in value.
  • Bits per pixel for compressed video is your own estimate. It is not a fixed number for a codec such as H.264, H.265 (HEVC) or AV1. The starting values on the page are examples, not recommendations for any camera, codec or website.
  • Limits of email and upload services change. Check the current limit with the service and type it as the target size.
  • The calculator does not open or change a video. To make a file smaller, use a video compressor. To read the length of an MP4 or MOV file, use the Video Ad Duration Checker. For timecode and frames, use the Video Timecode & Size Calculator or the Animation Timing Calculator.

Related tools