Image File Size Calculator
Calculate image file sizes based on resolution, format, and compression. Estimate storage for RAW, JPEG, PNG, WebP, TIFF, and other formats.
Image Settings
Result
Storage Capacity
How Image File Size is Calculated
Basic Formula (Uncompressed)
File Size (MB) = (Width × Height × Bit Depth) ÷ 8,388,608
Example: 6000 × 4000 × 24 ÷ 8,388,608 = 68.7 MB
This calculates the uncompressed size. Most formats apply compression to reduce file size. JPEG typically achieves 10-40% of uncompressed size depending on quality settings.
Format Comparison
| Format | Type | Typical Size | Use Case |
|---|---|---|---|
| JPEG | Lossy | 10-40% of RAW | Photos, web images |
| PNG | Lossless | 30-70% of RAW | Graphics, transparency |
| WebP | Lossy/Lossless | 25-35% smaller than JPEG | Modern web |
| AVIF | Lossy/Lossless | 50% smaller than JPEG | Next-gen web |
| RAW | Uncompressed | 100% (baseline) | Professional photography |
| TIFF | Lossless | 100% (or compressed) | Archival, printing |
Typical File Sizes by Megapixels
- 12 MP (4000×3000): RAW ~25 MB | JPEG ~4 MB | WebP ~2.5 MB
- 24 MP (6000×4000): RAW ~69 MB | JPEG ~8-15 MB | WebP ~5-8 MB
- 50 MP (8688×5792): RAW ~144 MB | JPEG ~20-35 MB | WebP ~12-20 MB
- 100 MP (12288×8192): RAW ~288 MB | JPEG ~40-70 MB | WebP ~25-40 MB
Compression Guidelines
- Maximum Quality (10%): Nearly lossless. For critical work and large prints.
- High Quality (20-30%): Excellent quality. Suitable for professional use and printing.
- Medium Quality (40-50%): Good quality. Ideal for web and general use. Sweet spot for most purposes.
- Low Quality (60-70%): Visible compression artifacts. Only for thumbnails or bandwidth-limited situations.
Common Image Scenarios
Smartphone Photo
12 MP, JPEG Medium
3-5 MB
DSLR Photo (RAW)
24 MP, 14-bit RAW
25-40 MB
Web Image
1920×1080, WebP
100-300 KB
High-Res Print
50 MP, TIFF 16-bit
288 MB
Frequently Asked Questions
How many photos can fit on a memory card?
It depends on image resolution and format. For 24 MP JPEG at medium quality (~12 MB each): 16 GB = ~1,365 photos, 64 GB = ~5,460 photos, 256 GB = ~21,845 photos. RAW files take 3-5x more space than JPEG.
Should I shoot in RAW or JPEG?
RAW preserves maximum image data for editing but creates large files (25-40 MB for 24 MP). JPEG is smaller (3-15 MB) but less flexible for editing. Shoot RAW for important photos you'll edit, JPEG for casual shots and when storage is limited.
What's the best format for web images?
WebP offers the best compression (25-35% smaller than JPEG) with good quality and wide browser support. AVIF is even better (50% smaller) but has limited support. Use JPEG as fallback for maximum compatibility.
Why do my RAW files vary in size?
RAW file size depends on sensor resolution, bit depth (12-bit vs 14-bit), and whether the camera uses lossless compression. Some cameras compress RAW files to 50-60% of uncompressed size without quality loss.
How much storage do I need for a photo shoot?
Calculate: (number of shots) × (file size per shot). Example: 500 shots in RAW (24 MP) = 500 × 30 MB = 15 GB. Always bring 2-3x more storage than calculated to be safe.