Toolvito

Works on this device

File Size Calculator

Find how large a video, audio or image file will be, convert a size between kB, MB, GB and the binary units KiB, MiB, GiB, or see how long a file takes to send and how large it is in an email.

Enter your values

See a size in bytes and in decimal and binary units side by side.

Your values

kB, MB, GB and TB count in steps of 1000. KiB, MiB, GiB and TiB count in steps of 1024.

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, for example Video file size or Convert a file size.
  2. Enter what you know: a bit rate and a duration, or the width, height and bits of a picture. Pick the unit of each value.
  3. Choose Calculate. Each size is shown in decimal units (MB, GB) and in binary units (MiB, GiB). You can change the unit of a result.
  4. Copy the result or download it as a CSV file.

The formulas

  • Units: 1 byte = 8 bits. kB, MB, GB and TB count in steps of 1000. KiB, MiB, GiB and TiB count in steps of 1024 (1 MiB = 1,048,576 bytes).
  • Uncompressed image = width × height × channels × bits per channel ÷ 8 bytes. RGB has 3 channels, RGBA and CMYK 4, greyscale and camera raw data 1.
  • Uncompressed audio (PCM, WAV) = sample rate × bits per sample × channels × seconds ÷ 8.
  • Compressed audio or video (MP3, MP4, ProRes) = bit rate × seconds ÷ 8. For video, add the audio bit rate when it is not part of the video rate.
  • Uncompressed video = width × height × samples per pixel × bits per sample × frames per second × seconds ÷ 8. With 4:2:2 colour there are 2 samples per pixel, with 4:2:0 there are 1.5.
  • Recording time = space × 8 ÷ bit rate. Time to send = size × 8 ÷ speed.
  • Email attachment (Base64, RFC 2045): every 3 bytes become 4 characters, and each line of 76 characters ends with 2 more (CR LF). A file grows by about 37%.

Worked examples

  • A photo of 6000 × 4000 pixels in RGB with 8 bits per channel: 6000 × 4000 × 3 × 8 ÷ 8 = 72,000,000 bytes, which is 72 MB or 68.66 MiB uncompressed.
  • Four minutes of CD audio (44.1 kHz, 16 bits, stereo): 44,100 × 16 × 2 = 1,411,200 bit/s; × 240 s ÷ 8 = 42,336,000 bytes, about 42.3 MB.
  • Ten minutes of video at 50 Mbit/s: 50,000,000 × 600 ÷ 8 = 3,750,000,000 bytes, which is 3.75 GB or 3.49 GiB.
  • A 64 GB card at 100 Mbit/s holds 64,000,000,000 × 8 ÷ 100,000,000 = 5,120 seconds: 1 hour 25 minutes 20 seconds.
  • A 10 MB attachment becomes 13,333,336 characters of Base64 in 175,439 lines, so 13,684,214 bytes in the email: 36.8% larger.

Limits you should know

  • Compressed formats such as JPEG, PNG, MP3 and MP4 do not have a fixed size for a number of pixels or seconds. Use the bit rate of your setting, or a compression ratio from files you made.
  • The bit rates of cameras and codecs, such as the rates of ProRes, are set by their makers. Type the rate from the maker of your camera or codec; this page does not keep a list.
  • Real files add headers, tags, cover pictures, preview pictures and padding. Cameras split long recordings into several files.
  • The time to send is the best case at a steady speed. For protocol overhead and shared links, use the File Transfer Calculator or the Bandwidth Calculator.
  • Each mail service sets its own size limit and counts it in its own way. Check the limit of your service.

Related tools