Calculadora de Tamanho de Arquivo de Imagem
- Created by
- Renato Passos, Eng. de Software
- Reviewed by
- Renato Passos, Eng. de Software
Last updated: Apr 18, 2026
Formula
bytes = pw × ph × bpp / 8
About this calculator
The Image File Size Calculator estimates the size of a digital image without compression. The calculation is based on the formula: size (in bytes) = width in pixels × height in pixels × bits per pixel / 8. This value represents the minimum space needed to store the image in a raw format, such as uncompressed BMP or TIFF.
This tool is useful for photographers, designers, and IT professionals who need to predict disk space or bandwidth required for transferring images. For example, when planning storage for a batch of high-resolution photos or configuring image servers, the calculation helps to properly dimension resources.
It is important to note that the result is for uncompressed images. Formats like JPEG or PNG use compression that significantly reduces the size, but the formula does not account for these algorithms. Additionally, metadata (such as EXIF) and file headers may add a few extra bytes, which are not included in the calculation.
To use the calculator, enter the width and height in pixels and the color depth (bits per pixel). Common values: 24 bits for RGB (8 bits per channel) and 32 bits for RGBA (with alpha channel). The result is displayed in bytes, kilobytes, megabytes, and gigabytes for easy interpretation.
Frequently asked questions
What is the difference between bits per pixel and color depth?
Bits per pixel (bpp) is the same as color depth. It represents how many bits are used to store the color of each pixel. Higher bpp allows more colors to be represented.
Does the result include space for image metadata?
No. The calculator considers only raw pixel data. Metadata such as EXIF, camera data, or file headers add a few extra bytes, which are not included.
Why is the calculated size different from the actual file size of a JPEG?
JPEG uses lossy compression, which significantly reduces file size. The formula calculates uncompressed size, which is larger. For JPEG estimation, use a specific calculator that accounts for compression ratio.
How do I convert the result to megabytes?
Divide the value in bytes by 1,048,576 (1 MB = 1024² bytes). The calculator already displays the result in multiple units, including MB.
What does 24 bits per pixel mean?
24 bits per pixel is common for RGB images, with 8 bits for each channel (red, green, blue). It allows up to 16.7 million colors.