IZN Tools

Image File Size Calculator

Estimate the output size before you commit to a format and quality.

Megapixels2.1
JPEG1.40 MB – 2.80 MB
WEBP1007.89 KB – 1.97 MB
AVIF667.20 KB – 1.30 MB
PNG4.43 MB – 8.86 MB
Estimates from typical photographs — actual size depends heavily on content, and flat artwork compresses far better
Computed on this device

Two different questions, two modes

People arrive here with two different jobs, and mixing them produces a bad answer to both.

"The image does not exist yet." You are choosing dimensions and a format for a layout, so "Plan a size" gives a range derived from ordinary photographs. It is an estimate, and it is labelled as a range rather than a figure for that reason.

"The image exists — how much will it shrink?" Then "Measure a file": drop the file in and the page re-encodes it to JPEG, WebP, AVIF and PNG in your own browser, reporting the real weight of each and the difference from the original. No formula, actual bytes, and nothing uploaded anywhere.

Take the winning format to the image compressor, which runs the same re-encode and hands back the file, in batches if you need.

What actually drives the size

In order of effect:

  1. Dimensions. Bytes scale with pixel count, so halving the width quarters the area. This is the biggest lever by a distance.
  2. Format. AVIF beats WebP beats JPEG at the same visual quality, often by 25–35% each step.
  3. Quality setting. Real but non-linear — the step from 95 to 85 is nearly free, and 60 to 50 is where artefacts appear.
  4. Content. Noise, foliage and texture are expensive; flat backgrounds and soft gradients are cheap.

Bits per pixel is the honest measure

Divide the file size in bits by the pixel count and formats become comparable. Well-compressed web photography lands somewhere around 0.5–2 bits per pixel. Below 0.4 you should expect visible blocking; above 8 the file is much larger than it needs to be.

The quality analyzer reports that figure for a real file, which is the check to run once the image exists.

Plan dimensions first

Deciding "1600 px wide as WebP at 80" before exporting is worth more than any amount of tuning afterwards. Getting the dimensions right removes the problem; adjusting quality only trims around it.

Questions

How accurate is the estimate?+

It is a range, not a number, and it is derived from typical photographs. Content dominates: a portrait against a plain wall compresses several times better than a forest at the same dimensions. Use it to compare formats and sizes, not to predict a byte count.

Why is PNG shown as a flat figure?+

Because PNG is lossless — quality has no effect on it, only dimensions and content do. The figure assumes photographic content, which is PNG's worst case; a flat graphic will be far smaller.

What is a reasonable target?+

For a full-width hero on a web page, under 200 KB. For an in-article image, under 100 KB. If the estimate is far above that, the dimensions are usually the problem rather than the quality setting.

I already have the image — how much smaller will it get?+

Switch the tool to "Measure a file" and drop it in. The page re-encodes it to JPEG, WebP, AVIF and PNG in your own browser and reports the real weight of each and the difference from the original as a percentage. Not an estimate — bytes. The file never leaves: your own machine does the encoding.

Why does a format say the browser cannot write it?+

Chrome can write AVIF from a canvas; Firefox and Safari cannot. We say so instead of showing you a PNG's weight labelled AVIF — a browser that cannot encode a format silently returns a PNG, and the only way to catch it is the type of the finished file.

Can re-encoding make a file bigger?+

Yes, more often than people expect. A photograph written as PNG grows several times over. An already-compressed JPEG written again at a higher quality than it was saved with also grows. So the difference is signed: "40% bigger" is as valid an answer here as "smaller".