Image File Size Calculator

How much storage space will your image files consume?

Calculate the file size of digital images based on width, height, color depth, and compression settings. Estimate storage requirements for photos, graphics, and digital artwork before creating or downloading them.

Updated June 2026 · How this works

Example calculation — edit any field to use your own numbers

—

Put this calculator on your site

Free embed code. Works anywhere. No signup.

Worth knowing
How It Works
The formula, explained simply

Digital images are grids of colored dots called pixels, like a mosaic made of tiny squares. Each pixel stores color information as numbers - more numbers mean more possible colors but also bigger files. Think of it like the difference between a children's 8-crayon drawing and an artist's palette with hundreds of color tubes.

Compression works by finding patterns and shortcuts in this color data. JPEG compression looks for areas where the human eye won't notice if similar colors get merged together, dramatically reducing file size at the cost of some detail. PNG compression finds exact patterns that can be described more efficiently, like saying 'repeat this blue 50 times' instead of storing each blue pixel individually.

The total file size depends on three main factors: how many pixels you have (width × height), how many colors each pixel can display (bit depth), and how much the compression algorithm can shrink the data without noticeable quality loss. A 4K photo has four times the pixels of Full HD (1920 × 1080), but JPEG compression might make it only twice as large in actual file size.

When To Use This
Right tool, right situation

Use this calculator when planning storage for photography projects, estimating bandwidth for image galleries, or deciding between file formats for different purposes. It's particularly valuable for wedding photographers calculating memory card needs, web developers optimizing page load times, and anyone moving large image collections to cloud storage.

The calculator works best for standard photography and graphics workflows. Don't rely on it for specialized formats like medical imaging DICOM files, scientific imagery with custom bit depths, or vector graphics that scale without pixel limitations. These formats use different compression algorithms and storage structures.

Avoid using these estimates for real-time applications where exact file sizes matter, such as automated backup systems or precise bandwidth calculations. Actual compression varies too much based on image content to guarantee the calculated sizes will match reality within tight tolerances.

Common Mistakes
Why results sometimes look wrong

The biggest mistake is assuming all images of the same resolution will have identical file sizes. A photo of a blue sky might compress to 200 KB while a detailed forest scene at identical dimensions reaches 800 KB, because compression efficiency depends entirely on image complexity and color variation.

Many people confuse image resolution with file size, thinking more megapixels always means bigger files. While resolution sets the upper limit, compression can dramatically reduce the actual storage needed. A 12-megapixel phone photo might be smaller than a 5-megapixel image saved without compression.

Another common error is ignoring metadata overhead when planning storage. Camera files include EXIF data, color profiles and embedded preview images, which this calculator does not count. Across thousands of images that overhead adds up, so leave headroom when planning capacity.

The Math
Worked examples and deeper derivation

File size calculation starts with the raw pixel data: width × height × bytes per pixel. A 1920×1080 image with 24-bit color contains 2,073,600 pixels, each storing 3 bytes of color information (red, green, blue), totaling 6,220,800 bytes or about 6.2 MB uncompressed.

JPEG compression depends on quality settings and image content, so this calculator uses rules of thumb: quality 95 and up keeps 15% of the raw size, 85 to 94 keeps 8%, 70 to 84 keeps 5%, 50 to 69 keeps 3%, and below 50 keeps 2%. The 6.2 MB example becomes 497.7 KB at quality 85 and 311.0 KB at quality 70.

PNG compression is lossless; this calculator assumes 30% of the raw size, so the 6.2 MB image comes to about 1.9 MB. Flat graphics compress far better than that and noisy photos worse. Uncompressed formats like BMP and TIFF store the full pixel data plus minimal headers, staying close to the calculated uncompressed size.

Wedding photographer planning storage
4000x3000 pixel photos, 24-bit color, JPEG at 95% quality
Each high-quality wedding photo will be about 5.4 MB by this calculator's quality-95 rule. For a 500-photo wedding, you need roughly 2.7 GB of storage space.
Website designer optimizing load times
1920x1080 hero image, JPEG at 70% quality
The compressed image will be about 311 KB. This loads acceptably on most connections but consider further optimization for mobile users.
Digital artist planning print workflow
8000x6000 pixel artwork, 32-bit PNG for transparency
The uncompressed file would be 192 MB, but PNG compression brings it down to about 57.6 MB. Plan for longer upload and processing times.
Expert Unlock
The thing most explanations skip

Image compression efficiency correlates directly with spatial frequency - images with high-contrast edges and fine details resist compression, while gradual color transitions compress extremely well. This is why a smooth sunset photo tends to compress smaller than detailed architectural photography at the same resolution and quality setting.

Why are my actual file sizes different?

Why is my JPEG smaller than calculated?
JPEG compression varies dramatically based on image content. Photos with large areas of similar colors compress much smaller than detailed textures or high-contrast edges. Our calculator uses fixed rules of thumb for compression (listed under The Math), not measurements of your image.
What makes PNG files larger than expected?
PNG files can store additional metadata like color profiles, creation dates and camera settings, which add to the base file size. Images with transparency or complex patterns also compress less efficiently than simple graphics.
How accurate are these estimates for RAW camera files?
A RAW file stores one 12- or 14-bit value per photosite rather than three colors, so this calculator counts width × height × 14 bits. Many cameras then apply their own lossless or lossy compression, and file layouts differ by manufacturer, so real files are often smaller.

Need something this doesn't cover?

Suggest a tool — we'll build it →