Image File Size Calculator

Estimate an image's uncompressed size and its likely compressed size in JPEG, PNG or WebP from its dimensions.

Typical photographic JPEG at quality 80 lands near 1.0–1.5.
Uncompressed size 5.93 MB
bytes = width × height × bits per pixel ÷ 8
Estimated compressed size 303.8 KB
bytes = width × height × bits per pixel ÷ 8
Compression ratio 20
bytes = width × height × bits per pixel ÷ 8
Megapixels 2.07
Uncompressed bytes 6,220,800
Browser canvas memory needed 7.91 MB — a browser canvas always holds 32-bit RGBA regardless of the source format
How reliable is this? The uncompressed figure is exact arithmetic. The compressed figure is only as good as the bits-per-pixel you entered, and real files vary enormously with content: a photograph of foliage may need three times the bits of a photograph of a clear sky at identical dimensions and quality settings. Use it for planning, not for a budget you must hit.

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Image File Size Calculator does

The image file size calculator on this page will estimate an image's uncompressed size and its likely compressed size in JPEG, PNG or WebP from its dimensions. Fill in all 4 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for estimating storage or bandwidth needed for a batch of images. More utilities in this area are collected on FreeToolsWorld.org.

How to use it

  1. Enter the pixel dimensions of the image.
  2. Choose the bit depth for the uncompressed figure — 24-bit RGB for a normal photograph.
  3. Set the bits-per-pixel you expect after compression, or leave the default for a quality-80 JPEG.
  4. Read both figures, and treat the compressed one as an estimate that depends on your image content.

How it works

The uncompressed size of an image is simple arithmetic: multiply the pixel count by the bits each pixel occupies and divide by eight. A 1920 × 1080 image at 24 bits per pixel is 6.2 MB of raw data. That figure is exact and it is what the image occupies in memory while being edited, which is why opening a handful of large photographs can exhaust a machine's RAM even though the files on disk were a few megabytes each.

Compressed size is a different kind of question, because it depends on what the picture contains. Compression works by finding redundancy, so a photograph of a clear blue sky compresses to a fraction of what a photograph of gravel or foliage needs at the same dimensions and the same quality setting. There is no formula that takes dimensions and returns a file size; the bits-per-pixel field here is an assumption you supply, and the page is honest that the output is only as good as that assumption.

For rough planning, photographic JPEG at quality 80 typically lands between 1.0 and 1.5 bits per pixel, which is where the default comes from. WebP at comparable visual quality usually runs 25–35% below the equivalent JPEG. AVIF goes lower again. PNG is lossless and therefore entirely content-dependent — a flat-colour logo may compress to 0.1 bits per pixel while a photograph saved as PNG can exceed 12, which is why PNG is the wrong format for photographs despite being the better one for graphics.

The canvas memory row matters if you are building anything that processes images in a browser. A canvas always allocates 32-bit RGBA per pixel whatever the source format, so a 40-megapixel JPEG that is 8 MB on disk needs 160 MB of canvas memory to decode, and mobile browsers impose hard limits on total canvas area that are easy to hit with camera-resolution images.

When to use it

  • Estimating storage or bandwidth needed for a batch of images.
  • Checking how much memory an image will take to process in a browser.
  • Comparing the data cost of different pixel dimensions before resizing.
  • Working out the uncompressed size of a bitmap or raw frame.

Common mistakes to avoid

  • Expecting a formula to predict compressed file size accurately. Content dominates, and no dimension-based calculation can account for it.
  • Using the disk size of a JPEG to estimate its memory footprint. Decoded, it needs 4 bytes per pixel.
  • Choosing PNG for photographs because it is lossless. It can easily produce files several times larger than a visually identical JPEG.

Frequently asked questions

How big is an uncompressed 1920 × 1080 image?

About 6.2 MB at 24 bits per pixel: 1920 × 1080 × 3 bytes = 6,220,800 bytes. With an alpha channel at 32 bits it is 8.3 MB.

Why does my JPEG differ so much from the estimate?

Because JPEG size tracks image content, not just dimensions. Fine detail and noise cost many more bits than smooth gradients, so two images of identical size and quality setting can differ threefold.

How much memory does an image need in a browser?

Four bytes per pixel, regardless of the file format, because a canvas stores 32-bit RGBA. A 40-megapixel photo needs about 160 MB decoded, which is enough to hit mobile browser canvas limits.

Related tools

See all image tools →