Image File Size Calculator – Uncompressed, JPEG, PNG & RAW

Image File Size Calculator

Work out how many megabytes an image takes by multiplying width x height by the bytes per pixel from its bit depth, then apply real JPEG, PNG, WEBP, TIFF or RAW compression ratios to get the stored file size and the total disk space for a whole batch of photos.

📷Real Image Presets

📄Image Inputs

Horizontal pixel count of the image.

Vertical pixel count of the image.

Precision of each color channel.

RGB is 3 channels, RGBA adds transparency.

Maps the format to a typical compression ratio.

Used only when format is set to Custom.

Total shots to store at this compressed size.

Binary matches Windows, decimal matches drive labels.

Uncompressed Size 0 MB raw pixel data
Compressed Size 0 MB at chosen format
Bytes Per Pixel 0 from the bit depth
Total For Batch 0 GB all images combined

🔢Formula Snapshot

RawW x H x bpp/8
bppbits x channels
Fileraw / ratio
Batchfile x count

📊Format Compression Ratios

FormatTypeTypical Ratio24MP Result
BMP / UncompressedNone1 : 168.7 MB
RAW (camera)Lossless / packed1.5 : 145.8 MB
TIFF (LZW)Lossless1.05 : 165.4 MB
PNGLossless2.5 : 127.5 MB
JPEG high qualityLossy5 : 113.7 MB
JPEG quality 80Lossy10 : 16.9 MB
WEBPLossy18 : 13.8 MB
AVIFLossy30 : 12.3 MB

🎨Bit Depth to Bytes Per Pixel

ModeBits / ChannelChannelsBits / PixelBytes / Pixel
Grayscale 8-bit818 bpp1.0
Grayscale 16-bit16116 bpp2.0
RGB 8-bit8324 bpp3.0
RGBA 8-bit8432 bpp4.0
RGB 10-bit HDR10330 bpp3.75
RGB 12-bit RAW12336 bpp4.5
RGB 16-bit16348 bpp6.0
RGBA 16-bit16464 bpp8.0

📏Resolution to Uncompressed 24-bit Size

ResolutionMegapixelsRaw BytesRaw Size (MB)
640 x 4800.31 MP921,6000.88 MB
1280 x 7200.92 MP2,764,8002.64 MB
1920 x 10802.07 MP6,220,8005.93 MB
2560 x 14403.69 MP11,059,20010.5 MB
3840 x 2160 (4K)8.29 MP24,883,20023.7 MB
4000 x 3000 (12MP)12.0 MP36,000,00034.3 MB
6000 x 4000 (24MP)24.0 MP72,000,00068.7 MB
8256 x 5504 (45MP)45.4 MP136,323,072130 MB

🗃Format Size Comparison Grid

ResolutionUncompressedPNG 2.5:1JPEG 10:1WEBP 18:1500-Photo JPEG
1280 x 7202.64 MB1.06 MB0.26 MB0.15 MB0.13 GB
1920 x 10805.93 MB2.37 MB0.59 MB0.33 MB0.29 GB
2560 x 144010.5 MB4.22 MB1.05 MB0.59 MB0.51 GB
3840 x 216023.7 MB9.49 MB2.37 MB1.32 MB1.16 GB
4000 x 300034.3 MB13.7 MB3.43 MB1.91 MB1.68 GB
6000 x 400068.7 MB27.5 MB6.87 MB3.81 MB3.35 GB
8256 x 5504130 MB52.0 MB13.0 MB7.22 MB6.35 GB

Formula Breakdown

Bits per pixelMultiply bits per channel by the number of channels. 8-bit RGB gives 8 x 3 = 24 bits per pixel; RGBA gives 8 x 4 = 32 bpp.
Bytes per pixel = bpp / 8Divide bits per pixel by 8. So 24 bpp is 3 bytes per pixel, and a deep 48 bpp image is 6 bytes per pixel.
Uncompressed = W x H x bytes/pixelA 6000 x 4000 image at 3 bytes/pixel is 6000 x 4000 x 3 = 72,000,000 bytes of raw pixel data.
Compressed = uncompressed / ratioDivide by the format ratio. That 72 MB raw file at JPEG 10:1 becomes about 7.2 million bytes, roughly 6.87 MB in binary units.
KB / MB / GBBinary units divide by 1024 each step: bytes to KB to MB to GB. Decimal units divide by 1000, which is how drive makers label capacity.
Batch total = file x countMultiply one compressed file by the number of images. 500 photos at 6.87 MB each is about 3,435 MB, or roughly 3.35 GB of storage.

💡Storage Saving Tips

Pick the format to the job: A 6000 x 4000 photo is 68.7 MB uncompressed, about 27.5 MB as PNG, but only 6.87 MB as JPEG quality 80 and 3.81 MB as WEBP. For photographic content JPEG or WEBP cut size 10 to 18 times with little visible loss, while PNG only saves around 2.5x and is best kept for flat graphics, logos, and screenshots with sharp edges.
Plan batch storage ahead: Multiply the single file size by your shot count before a shoot. 500 JPEG frames from a 24MP camera need roughly 3.35 GB, but the same 500 frames as 12-bit RAW at 45.8 MB each demand about 22 GB. Doubling bit depth from 8 to 16 also doubles the raw size, so a 16-bit workflow fills a card twice as fast as an 8-bit one.

When storage runs out, which tends to be at bad moments, knowing what that picture weigh will help. The last thing you want is to run out of space while shooting something memorable, such as a wedding. It might also be when the light is right. Instead, you stop taking pictures because you don’t have room for them; not because there wasn’t anything else left to photograph.

Storage anxiety becomes simple math once you know where file sizes goes: pixels, then color depth, then compression algorithm. All digital photos begin their life as a matrix of pixels, each one requiring information about what color they should be. The raw size of a picture is calculated by multiplying the width by the height by the bytes per pixel. For typical pictures, there are 8 bits (1 byte) for each of red, green, and blue channels, so each pixel has 24 bits (3 bytes). So if you take a 6000 by 4000 shot, even before it’s touched by any file format, that is 72 million bytes of pure picture data. That sounds big…until you remember that the cost of disk space makes the raw version almost never used in the real world.

How to Calculate Photo File Size

File sizes also depends on how much data is included in them, such as bit depth. When shooting in RAW or working with files for editing, changing bit depth will alter your file size. For example, doubling from 8-bit to 16-bit per channel means that each pixel now contain twice as many bits; immediately doubling the file size of your raw file. It’s a tiny little tech thing that makes big difference in practice. For transparent graphics where RGBA is used, adding the alpha channel adds another byte per pixel. That multiplies up fast when dealing with hundreds of images.

This raw data is compressed in various file formats. Depending on your choice, the savings are different than. If you select lossless formats such as PNG, they retain each and every pixel exactly the same way. However, they also result in only modest savings (perhaps a 2.5 to 1 reduction for photo-based content). This results in a huge raw image being reduced down to roughly 40 percent of its original size, better than nothing, but you won’t be saving your hard drive from getting filled up quickly. Lossy formats, including JPEG and newer WEBP, throw away information that we hardly notice anyway. With JPEG at quality level 80, it typically reduces the amount of data by a factor of 10; with moddern WEBP, you can get closer to an 18 to 1 ratio. Always there is a trade-off: File size vs. Absolute fidelity.

After you plug in your desired format and dimension settings, the calculator does math for you, taking the guesswork out of guessing how much space you’ll need. You no longer need to memorize different compression coefficients depending on the codec. Instead, choose your image resolution, decide if it’s a photograph or something with nice sharp edges (PNG) vs soft edges (JPEG), and voila: there’s your answer. There’s even an option to batch calculate, allowing you to see what 500 images in a particular size equate to in terms of megabytes versus gigabytes. More often than not, it’s this overall batch number that ends up being most relevant when purchasing cloud subscriptions or memory cards.

You should of checked this before.

There is one final wrinkle: decimal vs binary units. Hard drive manufacturers sell their drives using powers of 1000, but computers count storage in powers of 1024. That terabyte drive marked by the manufacturer actualy appears as around 931 GB in your operating system. It’s a classic tech industry mismatch. One which confuses everybody at least once. The calculator has a toggle to help, allowing you to match the units used by whatever piece of hardware you’re dealing with. Binary will give you the number your computer shows; decimal matches what’s on the box.

These numbers change the way you plan and shoot. Before you even pack your bag you can estimate how much memory you need (a 7 mb jpeg; roughly 45 MB for a 24MP RAW file). Do you want to bring one big 256 GB card? Or two smaller 128 GB cards? You are simply managing your resources.

After breaking down an image into its component parts: compression ratio, bits, pixels. The math becomes simple. Every time you click you’ll know exactly what it costs and you can spend less time staring at that ever-ticking-down-storage-counter and more on the moment and the light.

Image File Size Calculator – Uncompressed, JPEG, PNG & RAW