Image File Size Calculator

Estimate image storage from pixel dimensions, color depth, and an expected compression percentage.

Image Storage Estimate
Use 100 percent for raw pixel data or a lower percentage to model compression.

About Image File Size

Digital image size begins with pixel count. Multiplying width by height gives the total number of pixels, and multiplying that count by color depth gives the number of stored bits before compression. Dividing by eight converts bits to bytes. A 1920 by 1080 image contains 2,073,600 pixels; at 24 bits per pixel, its raw pixel data occupies 6,220,800 bytes, or about 5.93 MiB. File headers, metadata, color profiles, thumbnails, and format-specific structures can add extra data. Color depth describes how many bits represent each pixel. Standard RGB imagery commonly uses 24 bits, with eight bits each for red, green, and blue. Adding an eight-bit alpha channel creates 32-bit RGBA data. Grayscale may use 8 or 16 bits per pixel, while professional editing and scientific workflows can use higher channel precision. This calculator accepts any positive bit depth so it can model those different workflows. Actual JPEG, WebP, AVIF, HEIC, PNG, and TIFF sizes depend on compression. Photographs with texture and noise are harder to compress than simple graphics with flat colors. Lossy quality settings discard information and can reduce files dramatically, while lossless formats preserve exact pixels but may remain much larger. The stored-size percentage lets you model this uncertainty. Use 100 percent for uncompressed data, 10 percent for a rough ten-to-one result, or a percentage measured from comparable images exported with the same software settings. The estimate is useful for memory cards, upload limits, web performance budgets, scanning projects, and archive capacity. Multiply the result by the number of images when planning a collection, and leave overhead for previews, catalogs, backups, and filesystem allocation. For a production delivery, export a representative image and inspect its real byte count; that sample offers a better compression estimate than any generic assumption. Cloud services may calculate quotas with decimal units while operating systems display binary units. Check the provider's convention before comparing a storage plan directly with the MiB estimate shown here.

Image Size Examples

Image dataEstimated sizeAssumption
1920 x 1080, 24-bit5.93 MiBUncompressed
4000 x 3000, 24-bit34.33 MiBUncompressed
4000 x 3000, 24-bit at 10%3.43 MiBCompression estimate

How to Estimate Image Size

  1. Enter the image width and height in pixels.
  2. Enter the total bits used for each pixel.
  3. Enter 100 percent for uncompressed data or a measured compression percentage.
  4. Calculate the estimated size and allow extra space for metadata and format overhead.

Frequently Asked Questions

Why is my exported file a different size?

Exported formats add headers and metadata and apply content-dependent compression. The calculator estimates pixel data, so a real encoder can produce a different result.

What color depth should I use?

Use 24 bits for standard RGB and 32 bits for RGB with an eight-bit alpha channel. Use the actual channel precision from your imaging workflow when it differs.

What does MiB mean?

A mebibyte contains 1,048,576 bytes and is the binary unit commonly shown by software. A decimal megabyte contains 1,000,000 bytes, so its numeric value differs slightly.

Can this predict JPEG size exactly?

No, JPEG size depends on quality, detail, noise, and encoder behavior. A percentage based on similar exported photographs gives a more useful planning estimate.

Does metadata count toward file size?

Metadata, embedded profiles, and thumbnails consume additional bytes. They are not explicitly modeled and should be included as planning overhead.