Pixel to CM Ruler
Convert a pixel length to centimeters and see it plotted on a live ruler at 72, 96, 150, 300, or custom DPI.
Instant results Custom DPI Runs in your browser
01
Input
Enter your measurements
Enter positive numbers within the allowed range.
Quick DPI
02
Result
Your conversion
10.16 cm
384 px at 96 DPI
cm
Millimeters 508 mm
Inches 20 in
Pixels per cm 37.7953 px
Formula
cm = pixels × 2.54 ÷ DPI 01 / HOW IT WORKS
How to use this visual length converter
Enter the pixel length and choose the DPI that matches your screen, document, or print file. The ruler automatically adjusts its scale and plots the converted centimeter length.
The graphic is proportional, not a calibrated physical ruler. Browser zoom, operating-system scaling, and monitor pixel density can change how large it appears on your screen.
02 / FORMULA
The conversion formula
cm = pixels × 2.54 ÷ DPI
1
Choose the DPI that describes how many pixels fit in one inch.
2
Divide the pixel measurement by DPI to convert pixels to inches.
3
Multiply inches by exactly 2.54 to get centimeters.
Pixel to CM Ruler Questions
Is the ruler physically accurate on my screen?
The calculated value is mathematically accurate for the selected DPI. The ruler graphic is a proportional visualization; its physical on-screen size can change with monitor density, browser zoom, and display scaling.
What DPI should I use for a web layout?
Use 96 DPI for the CSS reference pixel and most web-layout calculations. Use the image's embedded or intended print DPI for print work.
How many pixels make one centimeter?
Pixels per centimeter equal DPI ÷ 2.54. At 96 DPI, one centimeter is approximately 37.795 pixels.