Image File Size Calculator
Calculate an estimated image file size from pixel dimensions, colour depth and compression settings.
Image File Size Calculator
Enter the image dimensions, colour depth and optional compression estimate to calculate the approximate file size.
The compression setting is an estimate only. Actual JPEG, PNG, WebP, AVIF and other image file sizes depend on the image content, format and encoding settings.
Estimated Image File Size
This is an estimate of the image data size. Actual file sizes may differ substantially because image formats use different compression and encoding methods.
What Is an Image File Size Calculator?
An Image File Size Calculator estimates how much digital storage an image requires based on its pixel dimensions and colour depth. It can also apply an estimated compression factor to provide an approximate compressed size.
The calculator is useful when planning image storage, website assets, digital photography, graphics projects and other applications where understanding image data size is important. It can also help explain why two images with identical dimensions can have very different file sizes.
Why Use an Image File Size Calculator?
Image dimensions alone do not determine the final size of an image file. Colour depth, encoding and compression all affect the amount of data required. This calculator provides a quick estimate without requiring image-editing software or a file upload.
Pixel-Based Calculation
Calculate image data from width, height and the total number of pixels.
Multiple Colour Depths
Choose common colour depths from 8 bits through to 64 bits per pixel.
Compression Estimates
Apply an estimated compression level to see how a smaller encoded size could compare with the uncompressed data.
Readable Results
View the estimated size in bytes, kilobytes, megabytes or gigabytes depending on the result.
No File Uploads
The calculation uses the values you enter and does not require you to upload an image.
Free to Use
Calculate image data sizes directly in your browser without registration or payment.
How to Use the Image File Size Calculator
Enter the image dimensions and colour depth, then select an estimated compression level if you want to estimate a compressed file size.
- Enter the image width — Enter the image width in pixels.
- Enter the image height — Enter the image height in pixels.
- Select the colour depth — Choose the number of bits used to represent each pixel.
- Calculate the file size — Select Calculate File Size to view the estimated uncompressed and compressed sizes.
How to Calculate Image File Size
The basic uncompressed image size formula is: image width × image height × colour depth in bits per pixel ÷ 8. The division by eight converts the result from bits into bytes. For example, a 1,920 × 1,080 image contains 2,073,600 pixels. At 24 bits per pixel, the uncompressed pixel data requires approximately 6,220,800 bytes before considering headers, metadata or compression.
Compression can reduce the amount of data stored in an image file. However, there is no universal compression ratio for a particular format. A photograph, illustration, screenshot and simple graphic can produce very different file sizes even when they have exactly the same pixel dimensions.
Image Dimensions and Pixel Count
Image dimensions are normally expressed as width × height in pixels. Multiplying these two values gives the total number of pixels. Increasing either dimension increases the amount of image data, so doubling both width and height results in four times as many pixels.
Colour Depth and Image Data
Colour depth describes how many bits are used to represent each pixel. A common 24-bit RGB image uses 8 bits for red, 8 bits for green and 8 bits for blue. A 32-bit image may use an additional 8 bits for an alpha channel, allowing transparency. Higher colour depths generally require more uncompressed image data.
Image File Size Accuracy
The uncompressed calculation provides a mathematical estimate of the raw pixel data, but it is not necessarily the size of a complete image file. File formats can include headers, metadata, colour profiles, thumbnails, transparency information and other data that affect the final file size.
Compressed file sizes are particularly difficult to predict without encoding the actual image. JPEG, PNG, WebP, AVIF and other formats use different compression techniques, while the visual content of the image also influences compression efficiency. For an exact file size, the image must ultimately be encoded using the intended format and settings.
James William Steven Parker
Creator & Developer of YesTools
James William Steven Parker is a web developer and technology professional with extensive experience in web development, web design, SEO, web hosting, systems analysis and cybersecurity. He created YesTools to provide fast, practical and free online tools for everyday tasks and technical work.
Learn more about James and YesToolsFrequently Asked Questions
Explore More Free Tools
Explore the YesTools collection of free online tools, calculators, converters, generators and utilities.
Browse All Categories

