Convert DPI to MB or KB: enter print size and DPI to get the uncompressed image file size and pixel dimensions, or find the DPI that fits a size limit.

Optional settings


Related Calculators

Calculator Functions

FunctionWhat it doesWhat it requires
File sizeFinds the uncompressed image size in MB, KB and bytes for a print size and DPIRequires the print width and height, the resolution in DPI or PPI, and the bits per pixel
Effective resolutionFinds the PPI an existing image has when printed at a given sizeRequires the print width and height, the pixel width and height, and the bits per pixel
Maximum whole-number PPIFinds the highest resolution whose uncompressed data fits a size limitRequires the print width and height, the size limit in KB, MB or GB, and the bits per pixel

Print size is entered in inches, centimetres or millimetres. Bits per pixel is 24-bit RGB by default, with 1-bit monochrome, 8-bit grayscale or indexed, 32-bit RGBA and 48-bit RGB as the other choices. Every result lists the pixel dimensions and the size in KB, bytes, MB and MiB.

DPI to File Size Formulas

bytes = Pw ร— Ph ร— b รท 8
bytesUncompressed pixel data, rounded up to a whole byte
PwPixel width: print width in inches ร— DPI, rounded to a whole pixel
PhPixel height: print height in inches ร— DPI, rounded to a whole pixel
bBits per pixel, such as 24 for RGB with 8 bits in each of 3 channels [1]

Print size times resolution gives the pixel count, so an 8 ร— 10 inch photograph scanned at 100 PPI is 800 ร— 1,000 pixels [1]. One byte is 8 bits, 1 MB is 1,000,000 bytes and 1 MiB is 1,048,576 bytes [2].

File size

An 8 ร— 10 inch image at 300 DPI is 2,400 ร— 3,000 pixels. In 24-bit RGB that is 2,400 ร— 3,000 ร— 24 รท 8 = 21,600,000 bytes, or 21.6 MB. DPI alone has no size in MB, because the answer also depends on the print size and bit depth. Doubling the DPI makes the data four times larger. The table shows a US Letter page, 8.5 ร— 11 inches, in 24-bit RGB.

DPIPixelsSize (MB)Size (MiB)
72612 ร— 7921.451.39
96816 ร— 1,0562.592.47
100850 ร— 1,1002.812.68
1501,275 ร— 1,6506.316.02
2001,700 ร— 2,20011.2210.70
3002,550 ร— 3,30025.2524.08
4003,400 ร— 4,40044.8842.80
6005,100 ร— 6,600100.9896.30
120010,200 ร— 13,200403.92385.21
240020,400 ร— 26,4001,615.681,540.83

Effective resolution

PPI = pixels รท inches

This is worked separately for width and height. A 3,000 ร— 2,400 pixel image printed 10 ร— 8 inches is 3,000 รท 10 = 300 PPI across and 2,400 รท 8 = 300 PPI down. Two different values mean the image and the print do not have the same shape.

Maximum whole-number PPI

The calculator tries whole PPI values and keeps the highest one whose bytes, from the formula above, stay at or under the limit. For an 8 ร— 10 inch print in 24-bit RGB with a 10 MB limit, 204 PPI gives 1,632 ร— 2,040 pixels and 9,987,840 bytes, while 205 PPI gives 10,086,000 bytes and is over. The answer is 204 PPI.

Limits of This Estimate

  • The size is raw pixel data for one flattened image. A saved JPEG, PNG or TIFF differs, usually smaller, depending on the format, its compression setting and the picture itself.
  • File headers, colour profiles, layers and row padding are not counted.
  • The resolution here is pixels per inch of the image. DPI is strictly a printer's dots per inch, although scanning and imaging software commonly uses the two terms for the same thing [1].

Sources