Loading...
Convert pixels to centimeters instantly. Adjust DPI for screen (96 DPI) or print (300 DPI). Includes paper size reference, screen size guide, and DPI comparison tables.
Most frequently searched pixel to centimeter conversions at 96 DPI (CSS/web standard).
1rem base font
Exactly 1 inch
Common element
Card width
Mobile width
Tablet width
Small laptop
Full HD (20in)
4K UHD (40in)
Pixels to Centimeters
cm = (px × 2.54) ÷ DPI
Centimeters to Pixels
px = (cm × DPI) ÷ 2.54
Screen (96 DPI): 100px → (100 × 2.54) ÷ 96 = 2.646cm
Print (300 DPI): 100px → (100 × 2.54) ÷ 300 = 0.847cm
Reverse: 5cm → (5 × 96) ÷ 2.54 = 188.98px
The same pixel count converts to different centimeter values at different DPI resolutions. Always match DPI to your output medium.
Standard ISO and US paper sizes with pixel equivalents for screen (96 DPI) and professional print (300 DPI).
const pxToCm = (px, dpi = 96) => (px * 2.54) / dpi;
const cmToPx = (cm, dpi = 96) => (cm * dpi) / 2.54;
pxToCm(100); // 2.6458 cm (screen)
pxToCm(300, 300); // 2.54 cm (print)
cmToPx(21, 300); // 2480 px (A4 width at 300 DPI)/* 1in = 2.54cm = 96px in CSS */
.print-layout {
width: 21cm; /* A4 width */
height: 29.7cm; /* A4 height */
padding: 2.54cm; /* 1 inch margin */
}Traditional Mac screen resolution. Used for PDF exports and e-readers. Now largely replaced by 96 DPI for web.
W3C CSS specification: 1px = 1/96 of an inch. Use for all web design, UI/UX work, and CSS calculations. Default in this converter.
Minimum for general print. Readable for office documents and reports but images may look slightly soft.
Industry standard for professional print. Use for brochures, business cards, flyers, and any commercial printing.
For magazines, posters, and large-format print where fine detail is critical. Most printers max out at 600 DPI.
Formula: cm = (px × 2.54) / DPI. At 96 DPI (screen): 1px = 0.0265cm. At 300 DPI (print): 1px = 0.00847cm. DPI is essential because pixels are screen units with no fixed physical size.
At 96 DPI (web standard): 1cm = 37.795px. At 72 DPI: 1cm = 28.346px. At 300 DPI (print): 1cm = 118.11px. Always specify DPI when answering this question.
Use 96 DPI for web and screen design — this is the W3C CSS specification standard where 1px = 1/96 inch. Use 300 DPI for professional print. Use 72 DPI for legacy Mac or PDF documents.
2.54cm = 1 inch = 96px at 96 DPI (screen standard). This is defined by the W3C CSS specification. At 300 DPI (print), 1 inch = 300px.
At 96 DPI (screen): 300px = 7.938cm. At 300 DPI (print): 300px = 2.54cm (exactly 1 inch). The conversion depends on the DPI of your output medium.
Pixels are logical screen units with no fixed physical size. Their physical size depends on screen resolution (DPI/PPI). A pixel on a 72 DPI monitor is larger than on a 300 DPI monitor.
100px in centimeters: at 96 DPI = 2.646cm. At 72 DPI = 3.528cm. At 300 DPI = 0.847cm. Change the DPI in our converter above for your specific output.
At 96 DPI: 10cm = 377.95px. At 300 DPI: 10cm = 1181.1px. Formula: px = (cm × DPI) ÷ 2.54.
A4 is 21cm × 29.7cm. At 96 DPI: ~794px × 1123px. At 300 DPI (print): 2480px × 3508px. Use 300 DPI for professional print-ready files.
CSS supports cm natively: width: 10cm; = 377.95px at 96 DPI. For JS: const cm = (px * 2.54) / 96. Use cm units in CSS for print stylesheets where physical dimensions matter.
At 96 DPI: 1920px = 50.8cm (exactly 20 inches). This is the Full HD width. At 300 DPI: 1920px = 16.256cm.
At 96 DPI: 1px = 0.026458cm, or 1cm = 37.795px. This is the fixed CSS reference ratio for all web design purposes.
Disclaimer: This tool provides approximate conversions for reference purposes. Results may vary slightly depending on browser rendering, root font size, and viewport settings. Always verify values in your specific development environment.