LeadReef

Convert pixels to centimeters

Pick a DPI and convert pixels to centimeters, or centimeters to pixels.

DPI
cm = px ÷ DPI × 2.54 · DPI 300

Free · No sign-up · Works instantly in your browser

How it works

  1. Step 1

    Enter a value.

    Type a number in either field and the other one updates instantly.

  2. Step 2

    Set the base or DPI.

    Change the base font size or DPI if your project uses a different one.

  3. 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

Find local businesses that need a new website

LeadReef finds businesses with an outdated or missing website in any city, with contacts and a ready first message. Your first search is free.

Related tools

All free tools
px to remType a pixel value and get rem with any base font size.rem to pxConvert rem to pixels with any base font size.px to emConvert px to em and back for nested elements.px to ptPixels to points and back, for print and documents.PNG to WebPSmaller files, same look, transparency kept.Aspect ratio calculatorFind a ratio, or the missing width or height.