Image File Size Calculator

Estimate image file sizes from resolution, bit depth, and format. Compare JPEG, PNG, WebP, AVIF, and RAW sizes with compression ratios.

1-100, higher = better quality, larger file
%
For batch storage estimation
Resolution
3,840 ร— 2,160
8.3 megapixels
Uncompressed Size
23.73 MB
3.0 bytes/pixel
JPEG Estimate
2.99 MB
Quality 80%
WebP Savings
28%
vs JPEG at same quality โ†’ 2.15 MB
AVIF Savings
45%
vs JPEG at same quality โ†’ 1.64 MB
Batch Total
2.99 MB
1 images as JPEG

Format Comparison

FormatEst. SizeCompressionTypeAlphaRelative Size
RAW (uncompressed)23.73 MB1:1Losslessโ€”
100.0%
BMP24.92 MB1:1Losslessโœ…
105.0%
TIFF (LZW)13.05 MB2:1Losslessโœ…
55.0%
PNG8.31 MB3:1Losslessโœ…
35.0%
JPEG2.99 MB8:1Lossyโ€”
12.6%
WebP (lossy)2.15 MB11:1Lossyโœ…
9.1%
WebP (lossless)6.17 MB4:1Losslessโœ…
26.0%
AVIF1.64 MB14:1Lossyโœ…
6.9%
HEIC1.94 MB12:1Lossyโ€”
8.2%
Planning notes, formulas, and examples

About the Image File Size Calculator

Understanding image file sizes is essential for web developers, photographers, and anyone working with digital media. An uncompressed 4K image at 24-bit color takes up nearly 24 megabytes, but JPEG compression can reduce this to under 2 MB with minimal visual quality loss. Our Image File Size Calculator estimates the storage requirements for any resolution and format combination.

Enter your image dimensions, bit depth, and color channels, then see the uncompressed size alongside estimated sizes for JPEG, PNG, WebP, AVIF, and RAW formats. The calculator accounts for typical compression ratios at different quality levels and shows how format choice impacts file size, loading speed, and storage requirements.

Whether you're optimizing images for web performance, planning storage for a photo library, estimating bandwidth for an image-heavy application, or choosing between modern formats like WebP and AVIF, it gives the data you need. It also includes common resolution presets from smartphone cameras to 8K displays, making it easy to plan your image pipeline.

When This Page Helps

Plan storage requirements, optimize web image formats, and understand the tradeoffs between quality and file size across different image formats. It is useful when choosing upload limits, compression settings, or storage budgets for sites, apps, and print-ready assets.

How to Use the Inputs

  1. Enter image width and height in pixels, or select a resolution preset.
  2. Set bit depth (8, 10, 12, 14, or 16 bits per channel).
  3. Choose the number of color channels (1=grayscale, 3=RGB, 4=RGBA).
  4. Adjust the JPEG quality level to see size differences.
  5. Compare estimated sizes across all major formats.
  6. Use the batch calculator to estimate storage for many images.
Formula used
Uncompressed Size = Width ร— Height ร— Channels ร— (BitDepth / 8) bytes JPEG Size โ‰ˆ Uncompressed / (10-40) depending on quality PNG Size โ‰ˆ Uncompressed / (2-5) depending on content WebP Size โ‰ˆ JPEG Size ร— 0.70-0.85 AVIF Size โ‰ˆ JPEG Size ร— 0.55-0.75

Example Calculation

Result: 24.88 MB uncompressed โ†’ ~2.07 MB JPEG @ 80%

3840ร—2160 at 8-bit RGB = 24,883,200 bytes uncompressed. At JPEG quality 80, typical compression ratio is ~12:1, yielding approximately 2.07 MB. WebP would be ~1.66 MB and AVIF ~1.24 MB for equivalent visual quality.

Tips & Best Practices

  • JPEG quality 80-85 is the sweet spot for web images โ€” good quality with significant savings over 100.
  • Use WebP for web images whenever browser support allows โ€” it's strictly better than JPEG.
  • PNG is best for screenshots, logos, and images with text โ€” not for photographs.
  • AVIF offers the best compression but encode times are significantly slower.
  • Always serve images at the display resolution โ€” don't send 4K images to mobile screens.
  • Consider using srcset/sizes to serve different image sizes to different devices.

Image Format Comparison

JPEG (Joint Photographic Experts Group) has been the dominant web image format since the late 1990s. It excels at photographs with smooth color gradients but struggles with sharp edges and text. Quality settings range from 1-100, with 75-85 being the practical sweet spot for web use. At quality 100, JPEG files can be larger than PNG with no visual benefit.

PNG (Portable Network Graphics) uses lossless compression, preserving every pixel. It's ideal for screenshots, diagrams, logos, and images with transparency. PNG files are typically 3-5ร— larger than JPEG for photographs but can be smaller for images with large areas of solid color. PNG supports 8-bit and 16-bit color depth plus full alpha transparency.

WebP, developed by Google, offers both lossy and lossless compression in a single format. Lossy WebP is typically 25-35% smaller than JPEG at equivalent quality. Lossless WebP is typically 26% smaller than PNG. It supports animation (replacing GIF) and alpha transparency. WebP is broadly supported across modern browsers and image pipelines.

AVIF (AV1 Image File Format) is the newest contender, based on the AV1 video codec. It offers approximately 50% savings over JPEG and supports HDR, wide color gamut, and both lossy and lossless modes. The main tradeoff is encoding speed โ€” AVIF is significantly slower to encode than WebP or JPEG, making it better suited for static content that's encoded once and served many times.

Resolution and Storage Planning

Camera megapixels have exploded from 2MP in early digital cameras to 50-200MP in modern smartphones and 61-100MP in professional cameras. A single 50MP RAW file takes 50-100 MB of storage. At 1000 photos per event, a wedding photographer might generate 50-100 GB of RAW files in a single day.

For web delivery, consider that global average internet speed is approximately 50 Mbps. A 2 MB image takes about 0.3 seconds to download, while a 10 MB image takes 1.6 seconds. Google recommends that total page weight stays under 1.5-3 MB for good user experience, making image optimization crucial for any image-heavy website.

Modern Image Optimization Pipeline

A common modern approach for web images is a multi-format pipeline: generate AVIF, WebP, and JPEG versions of each image, then use the HTML picture element to serve the smallest supported format to each browser. Combined with responsive images (srcset) that serve appropriate resolutions based on viewport and device pixel ratio, this approach can reduce image bandwidth by 60-80% compared to serving original JPEGs. Tools like Sharp (Node.js), Squoosh (CLI/web), and Cloudflare Image Resizing automate this pipeline.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Resolution (total pixels), bit depth (bits per channel), color channels (RGB=3, RGBA=4), and compression format/quality. Content also matters โ€” simple images compress better than complex ones.