How it works
- Step 1
Enter a value.
Type a number in either field and the other one updates instantly.
- Step 2
Set the base or DPI.
Change the base font size or DPI if your project uses a different one.
- Step 3
Copy the result.
Copy the value or CSS, or pick a ready value from the table below.
Free pixels to centimeters converter
To convert pixels to centimeters, divide by the DPI and multiply by 2.54, because an inch is 2.54 cm. At 300 DPI, an A4 page (21 × 29.7 cm) is 2480 × 3508 pixels.
Use it for print files in metric sizes, for flyers and posters, or to check whether an image is large enough for the size a client wants.
Common values at 300 DPI
Click any value to copy it
Questions people ask
How many pixels is 1 cm?
About 37.8 pixels at 96 DPI and about 118 pixels at 300 DPI.
What is A4 size in pixels?
At 300 DPI, A4 is 2480 × 3508 pixels. At 96 DPI it's 794 × 1123 pixels.
How do I convert cm to px for CSS?
CSS uses 96 pixels per inch, so 1cm equals about 37.8px. Set the DPI above to 96.
Why do cm values in CSS not match a ruler on screen?
Screens have different physical pixel densities, so CSS centimeters are only exact when printed.
Last updated: 25 Nov 2026 · Made by the LeadReef team