Image File Size Calculator
How it Works
01Width × Height
Total pixels in the image — the raw data surface.
02Bit Depth
Bits per pixel: 8 grayscale, 24 true colour, 32 RGBA, 48 hi-depth.
03Format Compression
JPG ~10%, WebP ~25%, PNG ~50%, BMP/RAW uncompressed.
04File Size
Output in B / KB / MB / GB automatically.
What is an Image File Size Calculator?
An image file size calculator estimates the storage size of a digital image from its pixel dimensions, bit depth, and compression method — no upload required, no software needed. Understanding file size before exporting or uploading saves bandwidth, reduces storage costs, and directly improves page load performance on the web. Google Lighthouse flags oversized images as a critical issue, and studies consistently show that every 100 ms of load time reduces conversion rates.
Uncompressed images grow linearly with pixel count and bit depth. A raw bitmap at 4000 × 3000 pixels with 24-bit color occupies roughly 34 MB. Apply JPEG compression at 80% quality and that same image shrinks to 2–4 MB. Switch to WebP and it drops further still. This tool calculates the exact uncompressed size and estimates compressed sizes for JPEG, PNG, and WebP based on typical real-world compression ratios for both photographic and flat graphic content.
Web developers, photographers, UI/UX designers, e-commerce teams, and mobile app engineers all benefit from knowing image file sizes before production. Choosing the right format and dimension combination upfront — rather than after deployment — is one of the fastest, highest-impact improvements available for web performance. This calculator makes that decision instant, accurate, and format-aware every time.
How It Works
Formula
Uncompressed Size (bytes) = Width × Height × (Bit Depth ÷ 8)
Convert to KB: ÷ 1,024. Convert to MB: ÷ 1,048,576.
JPEG estimate: Uncompressed × 0.10–0.25 (quality-dependent, photographic content)
PNG estimate: Uncompressed × 0.30–0.60 (lossless, varies heavily with content complexity)
WebP estimate: Uncompressed × 0.25–0.34 (Google format, smaller than JPEG at equivalent perceived quality)
Example
A 1920 × 1080 px image at 24-bit color: uncompressed = 1920 × 1080 × 3 = 6,220,800 bytes ≈ 5.93 MB. As JPEG at 80% quality: ≈ 0.6–1.5 MB. As PNG: ≈ 1.8–3.6 MB. As WebP: ≈ 1.5–2.0 MB. For a hero image on a product page, targeting WebP under 200 KB at 1200 px wide is a solid performance target.
Use Cases
Technical Reference
Key Takeaways
Image file size is controlled by three levers: pixel dimensions, bit depth, and compression format. Doubling image dimensions quadruples file size. Choosing WebP over JPEG at equivalent visual quality saves an additional 25–35% of bandwidth. For most web use cases, 24-bit WebP or JPEG at 1200–2000 px wide strikes the best balance of visual fidelity and loading speed. Always estimate before you export — knowing your file size target in advance is the single fastest path to a high-performance image pipeline.
Frequently Asked Questions
How is image file size calculated?
What does 'bit depth' mean?
Why is a JPEG smaller than a PNG?
How do I estimate JPEG file size?
What's the file size of a 4K photo?
How do I reduce image file size?
Why are RAW files so large?
What's WebP?
How does file size affect SEO and performance?
Is my data private?
Disclaimer
Estimates are based on typical compression ratios and may vary significantly with image content (complex photos vs. flat graphics). Verify actual sizes after export.