Image File Size Calculator

Estimate image file size from dimensions, format, and quality, or upload a real image for browser-based JPG, WebP, and PNG encoding measurements.

File size calculatorUpload an image to begin
Enter dimensions or upload an image to calculate raw memory and estimate real browser-encoded JPG, WebP, or PNG size.

Advertisement

Estimate bytes with useful context

Raw memory calculation

See width × height × four-channel RGBA memory before compression.

Real browser encoding

Upload an image to measure an actual Canvas-encoded blob at selected dimensions and quality.

JPG, WebP, and PNG

Compare photographic lossy formats with lossless PNG while recognizing that content complexity changes results.

What controls image file size?

SettingResultBest use
Pixel dimensionsMore pixels usually require more bytesResize oversized web images
FormatCodecs compress different content differentlyJPG/WebP for photos, PNG for lossless graphics
Quality settingLower lossy quality reduces bytesBalance artifacts against performance
Image complexityNoise and fine texture compress poorlyTest with the actual source image

How it works

  1. 1

    Enter dimensions

    Type output width and height or upload a source image.

  2. 2

    Select encoding

    Choose JPG, WebP, or PNG and adjust lossy quality.

  3. 3

    Compare estimates

    Review raw memory and the actual browser-encoded result.

Why image file size cannot be predicted exactly

Uncompressed RGBA memory is straightforward: width × height × 4 bytes. Compressed file size is content-dependent. Flat colors and smooth backgrounds compress differently from noise, foliage, hair, text, or detailed textures.

Quality scales are encoder-specific and PNG ignores a lossy quality slider. Browser Canvas estimates are useful but may differ from Photoshop, command-line encoders, CMS optimization, or CDN processing. Always measure the final production asset.

Frequently asked questions

How do I calculate uncompressed image size?

For standard RGBA memory, multiply width by height by four bytes.

Can compressed file size be calculated exactly from dimensions?

No. It depends on image content, format, encoder, metadata, and quality settings.

Why does PNG quality not change like JPG?

PNG is normally lossless; file size depends on pixel patterns and compression implementation rather than a lossy quality target.

Is the uploaded image sent to a server?

No. The estimate uses browser Canvas locally.

Image File Size Calculator last reviewed: Aug 2, 2026.