Switch language to ?
DPI & Print Size Calculator cm or inches to pixels, and back
Type a print size and DPI to get the pixels you need, or type pixels to see how big they print. No image needed.
Calculate pixels and print size
Choose a direction, enter positive values, and get an instant result.
Pixel requirements are rounded to the nearest whole pixel. DPI is used here as the target print density.
Formula
Pixels = inches × DPI.
Inches = pixels ÷ DPI.
Centimetres = inches × 2.54.
Understand the file, not just the setting.
Original, practical guides to compression, resizing, browser privacy, image resolution, and print planning.
For 3.5 × 4.5 cm at 300 DPI: divide each measurement by 2.54, multiply by 300, then round. The result is approximately 413 × 531 px.
Privacy note: This calculator runs entirely in your browser and requires no image upload.
Frequently asked questions
How do I calculate pixels from centimetres and DPI?
Divide centimetres by 2.54 to get inches, then multiply by the target DPI. PixelKaro rounds the result to the nearest whole pixel.
How do I calculate print size from pixels?
Divide the pixel width and height by the target DPI/PPI to get inches. Multiply those inch values by 2.54 for centimetres.
Why can the pixel result differ by one pixel?
Physical measurements can produce decimal pixel values, but image dimensions must use whole pixels, so the calculator rounds to the nearest pixel.
Does changing DPI improve image quality?
No. A DPI value connects existing pixels to a print size; changing it alone does not create new image detail.