Image File Size Calculator

Free Image File Size Calculator — estimate uncompressed and compressed file sizes for PNG, JPG, WebP, AVIF, and more based on dimensions, bit depth, and quality.

891.7K usesUpdated · 2026-04-28Runs locally · zero upload

How to Use Image File Size Calculator

The Image File Size Calculator estimates how large an image file will be before you create or export it, helping you optimise assets for web performance and storage.

  1. Enter Width and Height — Input the image dimensions in pixels. The Image File Size Calculator uses these to determine total pixel count.
  2. Select Bit Depth — Choose the colour depth that matches your image type: 24-bit for standard RGB photos, 32-bit for images with transparency, or 8-bit for grayscale.
  3. Choose a Format — Select the target image format (JPG, PNG, WebP, AVIF, BMP, GIF, or TIFF). The Image File Size Calculator applies the typical compression characteristics of each format.
  4. Adjust Quality (lossy formats) — For JPG, WebP, and AVIF, drag the quality slider to reflect your export settings. Lower quality reduces file size at the cost of visual fidelity.
  5. Read the Results — The Image File Size Calculator displays the raw uncompressed size and the estimated compressed file size side by side.

Formula & Theory — Image File Size Calculator

The Image File Size Calculator is built on the fundamental pixel-data formula:

Uncompressed Size (bytes) = Width × Height × Bit Depth ÷ 8
Estimated File Size       = Uncompressed Size × Compression Ratio × Quality Factor
Symbol Meaning
Width Image width in pixels
Height Image height in pixels
Bit Depth Bits used to represent one pixel (e.g., 24 for RGB)
Compression Ratio Format-specific factor (e.g., ~0.10 for JPG at default quality)
Quality Factor Multiplier for lossy formats derived from the 0–100 quality scale

Typical Compression Ratios by Format

Format Typical Ratio vs. Uncompressed
BMP ~1.0 (no compression)
TIFF ~0.9 (lossless, minimal)
PNG ~0.5 (lossless)
GIF ~0.35 (lossless, 256 colours)
JPG (Q80) ~0.10
WebP (Q80) ~0.07
AVIF (Q80) ~0.05

The Image File Size Calculator adjusts these ratios dynamically based on your quality slider value, giving you a realistic estimate for any export setting.

Use Cases for Image File Size Calculator

The Image File Size Calculator is valuable in many professional workflows:

  • Web performance optimisation — Predict whether a hero image or product photo will exceed your page-weight budget before exporting, saving time in iterative quality adjustments.
  • Bandwidth and CDN cost planning — Estimate monthly data transfer costs by knowing the average size of images served at different resolutions and formats.
  • Storage capacity planning — Calculate how many images of a given resolution and format will fit on a server volume or cloud storage bucket.
  • Format comparison — Use the Image File Size Calculator to compare JPG, WebP, and AVIF at the same quality setting and choose the most efficient format for your use case.
  • Upload size validation — Check whether an image will fall within the maximum file size enforced by a CMS, e-commerce platform, or social network before the upload fails.
  • Print media — Estimate the file size of high-resolution TIFF or BMP exports used in print production workflows.

The Image File Size Calculator gives designers, developers, and digital marketers the data they need to make informed decisions about image format, resolution, and quality settings.

Frequently asked questions about Image File Size Calculator

How does the Image File Size Calculator estimate file size?

The Image File Size Calculator first computes the raw uncompressed size using the formula: Width × Height × Bit Depth ÷ 8. For compressed formats it then applies typical compression ratios, adjusted by your chosen quality setting for lossy formats like JPG, WebP, and AVIF.

Why is the estimated size different from the actual file on disk?

Real-world file sizes depend on image content complexity, encoder algorithms, embedded metadata, and ICC colour profiles. The Image File Size Calculator provides a useful ballpark, but results will vary by image.

Which formats produce the smallest files?

Modern formats like AVIF and WebP typically produce the smallest files at equivalent visual quality. The Image File Size Calculator lets you compare formats side by side by switching the format selector.

What bit depth should I choose?

Standard web photos use 24-bit (RGB). Adding transparency requires 32-bit (RGBA). HDR images may use 48-bit. The Image File Size Calculator shows how bit depth directly impacts file size.

Is my data stored?

No. All calculations happen in your browser; nothing is sent to a server.