Photography

Image File Size Calculator

Calculate the uncompressed and compressed size of a digital image.

Last updated · View algorithm, constants and default inputs (JSON)

Enter your values

Megapixels 24.00MP
Results

About this calculator

Uncompressed size is determined by pixel dimensions, bit depth and channels. Compressed file size varies with image content, codec settings and metadata, so enter a compression percentage that matches your own files. Card capacity uses decimal GB and actual usable space may be lower.

Worked example

calculated with the default values below

Image width 6,000 px · Image height 4,000 px · Bit depth per channel 8 bit · Channels RGB · Memory card size 64 GB · Estimated file size as % of uncompressed 10 % Megapixels 24.00 MP · Uncompressed size 68.66 MB · Estimated file size in your format 6.87 MB · Photos on this card 9,320 · Aspect ratio 1.50

General background references

Disclaimer

These calculators give general estimates. Sizing, pricing, availability and standards vary by brand, retailer and country, so treat the output as a starting point and confirm it against the seller's or authority's own figures.

Maintained by: CalcDelta

Implementation source

This record describes the implementation used by this page. It is not independent validation. External references, when available, support only the stated formula or definition; estimates and custom rules retain their own assumptions.

View algorithm, constants and default inputs (JSON)

Formula and variables

MB = W × H × d × c ÷ 8 ÷ 1048576 × q ; N = ⌊S × 1024 ÷ MB⌋

W
image width (px)
H
image height (px)
d
bit depth
c
colour channels
q
compression factor (JPEG 0.09, PNG 0.55, raw 1)
S
memory card size (GB)

Uncompressed bytes = width × height × bit depth × channels ÷ 8; estimated size = uncompressed size × user-entered percentage. Card capacity uses decimal GB.

Embed this calculator

Copy the iframe snippet to place this calculator on your site. No account required. The snippet stays in sync with the inputs currently shown.

Frequently asked questions

Why do I enter a compression percentage?

Compressed size depends on image content, codec settings and metadata. Use a ratio observed from similar files; the card count is approximate.