Image File Size Calculator
Estimate packed uncompressed raster data size from pixel dimensions and total bits per pixel.
Formula
Bytes = ceil(width × height × bits per pixel / 8); MB = bytes / 1000000.
Packed bytes ≈ ceil((640)×(480)×(24)÷8) · Size in MB ≈ ceil((640)×(480)×(24)÷8)÷1000000
How to use
- Enter width and height in pixels.
- Enter total bits per pixel across all channels.
- Read packed data size in bytes and MB.
Examples
- 640 × 480 pixels at 24 bits per pixel need 921,600 bytes.
Frequently asked questions
Does this predict JPEG or PNG size?
No. Compression depends on the image and encoder.
Does it include metadata or row padding?
No. It only estimates tightly packed pixel data, rounded up to a byte.
What does 24-bit mean?
Use 24 total bits per pixel for three 8-bit color channels.
Sources
Updated: