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.
Related Calculators
- DPI Calculator (PPI)
- Resolution Calculator
- Pixels to Inches Calculator
- cm to Pixel Calculator
- cm to DPI Calculator
- Pica Calculator
- All Unit Converters
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| File size | Finds the uncompressed image size in MB, KB and bytes for a print size and DPI | Requires the print width and height, the resolution in DPI or PPI, and the bits per pixel |
| Effective resolution | Finds the PPI an existing image has when printed at a given size | Requires the print width and height, the pixel width and height, and the bits per pixel |
| Maximum whole-number PPI | Finds the highest resolution whose uncompressed data fits a size limit | Requires 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 | Uncompressed pixel data, rounded up to a whole byte |
| Pw | Pixel width: print width in inches ร DPI, rounded to a whole pixel |
| Ph | Pixel height: print height in inches ร DPI, rounded to a whole pixel |
| b | Bits 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.
| DPI | Pixels | Size (MB) | Size (MiB) |
|---|---|---|---|
| 72 | 612 ร 792 | 1.45 | 1.39 |
| 96 | 816 ร 1,056 | 2.59 | 2.47 |
| 100 | 850 ร 1,100 | 2.81 | 2.68 |
| 150 | 1,275 ร 1,650 | 6.31 | 6.02 |
| 200 | 1,700 ร 2,200 | 11.22 | 10.70 |
| 300 | 2,550 ร 3,300 | 25.25 | 24.08 |
| 400 | 3,400 ร 4,400 | 44.88 | 42.80 |
| 600 | 5,100 ร 6,600 | 100.98 | 96.30 |
| 1200 | 10,200 ร 13,200 | 403.92 | 385.21 |
| 2400 | 20,400 ร 26,400 | 1,615.68 | 1,540.83 |
Effective resolution
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
- U.S. National Archives and Records Administration, Technical Guidelines for Digitizing Archival Materials for Electronic Access (2004): pixel dimensions from size and resolution, bit depth, and PPI versus DPI
- NIST, Definitions of the SI units: The binary prefixes: bits per byte, megabyte and mebibyte
