What Are Pixels, DPI, and File Size in Photos?
Published November 5, 2026 · Ubahin Team
Online forms often mention three different things for photos: size in pixels, size in centimeters, and file size in KB. The three are related but not the same, and mixing them up is a common reason photos get rejected.
Pixels: the size of the image on screen
A pixel is the smallest dot that makes up an image. A photo that is 1200 × 1600 pixels has 1200 dots across and 1600 dots down. The more pixels, the more detailed the image.
DPI: density when printed
DPI (dots per inch) states how many pixels are used per inch when printing. At 300 dpi, a 3×4 cm photo needs about 354 × 472 pixels. On a screen or an online portal, what counts is the number of pixels, not DPI.
File size: how many KB or MB
File size is the storage space used. It is affected by the number of pixels, the format (JPG is usually much smaller than PNG), and the compression level. Two photos with the same pixels can have different file sizes.
How to adjust them
- To change the dimensions, use Resize Image. For ID photos, ID Photo 3×4 for Applications fills in the pixel size automatically.
- To reduce the file size, use Compress Image with a specific KB target.
Common mistakes
- Enlarging a small photo: the number of pixels goes up, but the detail does not, so the result is blurry.
- Converting JPG to PNG to shrink the file: it usually ends up larger.
- Thinking DPI sets the size on an online portal: what gets read is pixels and KB.
Calculation example
To calculate pixels from centimeters at 300 dpi, first convert centimeters to inches (1 inch equals 2.54 cm), then multiply by 300. A 3 cm photo is about 1.18 inches, or about 354 pixels. A 4 cm photo is about 1.57 inches, or about 472 pixels. That is why a 3×4 cm ID photo becomes 354 × 472 pixels.
Why a 3×4 photo can be large on a computer
A photo straight from a phone camera has millions of pixels, for example 3000 × 4000. That is far more than an ID photo needs. So cropping and reducing the dimensions first almost always cuts the file size much more than just turning up the compression.
Frequently asked questions
Does reducing pixels lower the quality? Detail does decrease, but for screen display and application portals you usually will not notice. What damages quality is enlarging a small photo.
Which should I reduce first, pixels or KB? Reduce the pixels first to the size you need, then adjust the compression to reach the KB limit.
Which format is the most economical? For photos, JPG or WEBP is usually far more economical than PNG. There is more on this in the article on the differences between JPG, PNG, and WEBP.