Free image tools

Image file size calculator: uncompressed, TIFF, PNG and JPEG

Enter width, height, bit depth and number of channels to get the uncompressed size of an image, with typical estimates for lossless TIFF or PNG and for JPEG, and a total for any number of images.

This tool needs JavaScript. It runs entirely in your browser; nothing is uploaded.

Private by design. Your files are processed by your own browser on your own device. They are not uploaded, stored or seen by Archive.London. Tool terms

How to use the Image File Size Calculator tool

  1. Enter the width and height in pixels.
  2. Choose the bit depth, 8 or 16 bits per channel.
  3. Choose the channels: greyscale, RGB, or four channels for RGBA or CMYK.
  4. Optionally enter the number of images to get a total.
  5. Read the uncompressed size and the compressed estimates.

Uncompressed image size is width × height × channels × bit depth ÷ 8, in bytes. A 6000 × 4000 pixel RGB image at 8 bits is 72 MB; at 16 bits it is 144 MB. The Archive.London image file size calculator works this out and adds typical estimates for lossless TIFF or PNG and for JPEG.

How uncompressed image size is calculated

Every pixel stores one number per channel, and each number occupies either one byte (8-bit) or two (16-bit). The uncompressed size follows directly:

bytes = width × height × channels × (bit depth ÷ 8)

Greyscale has one channel, RGB three, and RGBA or CMYK four. Some worked figures for a 24-megapixel image of 6000 × 4000 pixels:

  • 8-bit greyscale: 24 MB
  • 8-bit RGB: 72 MB
  • 16-bit RGB: 144 MB
  • 16-bit CMYK: 192 MB

This is the amount of memory the image needs when open in an editor, whatever format it was saved in, and it is exact. Note that 72,000,000 bytes is 72 MB in decimal units but about 68.7 MiB in the binary units some operating systems display, which explains small disagreements between tools. Resolution in PPI plays no part: only pixel dimensions count.

Why compressed sizes can only be estimated

The file on disk is usually smaller than the uncompressed figure, by an amount that depends on the picture as much as on the format.

Lossless compression, as in PNG or TIFF with LZW or ZIP, finds repetition in the data and stores it more compactly. Flat graphics and clean skies shrink a great deal. Grainy film scans and noisy high-ISO photographs shrink little, and 16-bit files generally compress less well than 8-bit ones.

JPEG is lossy and always 8-bit. It discards fine detail the eye is least likely to miss, and the saving is set by the quality level. A common rule of thumb puts a high-quality JPEG at around a tenth of the uncompressed size, with detailed images larger and smooth ones much smaller.

The calculator's TIFF, PNG and JPEG figures are therefore typical values for budgeting, not predictions for a particular file.

Budgeting storage for a scanning project

File size arithmetic matters most when it is multiplied. A 16-bit RGB master scan of about 100 megapixels, a plausible size for medium-format film at high resolution, is 600 MB uncompressed. As pure arithmetic, the 134,340 analogue frames listed in the Robert Harper Photograph Library inventory would come to roughly 80 terabytes at that size, before any backup copies or smaller access files. That is an illustration of scale, not a description of a plan.

The practical lesson for any collection is to fix the specification first: pixel dimensions, bit depth and master format decide the storage bill, and they are far cheaper to change before capture than after. Use the number-of-images field here for a first total, then the archive storage calculator for copies and growth. Our digitisation partners page outlines the material awaiting scanning.

Frequently asked questions

How big is a 24-megapixel photo in MB?

Uncompressed, a 24-megapixel RGB image at 8 bits per channel is 72 MB, and at 16 bits it is 144 MB. Saved as a JPEG from a camera it is typically far smaller, often somewhere between 5 and 15 MB depending on the subject and the quality setting. A raw file from the same camera falls in between.

Why is my JPEG so much smaller than the calculated size?

The calculation gives the size of the pixel data with no compression. JPEG uses lossy compression that removes detail the eye is less sensitive to, so the saved file is a fraction of that figure. When the JPEG is opened, it expands in memory back to the full uncompressed size, which is why large images can slow a computer down.

Does DPI or PPI affect file size?

No. The DPI or PPI value stored in a file is only a note about intended print size. File size is determined by the number of pixels, the bit depth, the number of channels and the compression. Scanning at a higher resolution does produce a bigger file, but only because it captures more pixels.

How much bigger is a 16-bit file than an 8-bit file?

Exactly twice as large uncompressed, because each channel value takes two bytes instead of one. After lossless compression the gap is often wider, since 16-bit data contains more fine variation and compresses less efficiently. The extra depth is useful for master scans that will be edited heavily; it is rarely needed for delivery files.

Are the TIFF, PNG and JPEG figures exact?

No. Only the uncompressed size is exact. Compressed size depends on image content, noise, the compression method and, for JPEG, the quality setting, so the calculator shows typical values. For a firm figure, save a few representative images in your chosen format and average the results before committing to a storage budget.

Help digitise the archive

52,684 analogue originals, mostly medium-format transparencies, are waiting to be scanned and catalogued. We are speaking to scanning, cataloguing and tagging partners.

See the digitisation briefWrite to the archive