PX to CM Converter

px
cm

Result: 2.54cm

Calculation based on the CSS reference pixel of 37.795275591 pixels per inch (96px = 2.54cm).

How to Use the Converter?

1

Select the input field labeled "Pixels"

2

Change the number in an input field

3

Converter will automatically convert

Support Our Work

Your support powers this tool for developers everywhere.

You May Like These Websites

Find the perfect website for your needs with our curated list of top-rated options.

PX to CM: How the Conversion Works

Pixels are digital units tied to screen resolution, while centimeters are a physical unit of length used throughout the metric system. The CSS specification standardizes the relationship at 96 pixels per inch, and since 1 inch equals 2.54cm, that works out to roughly 37.8px per centimeter.

This conversion is helpful when preparing print-ready materials measured in centimeters, verifying that a digital design will match real-world physical dimensions, or working with European paper and packaging sizes that use the metric system by default.

For example, an A4 page (21cm × 29.7cm) equals roughly 794px × 1123px at 96 DPI. A 10cm × 15cm photo print equals about 378px × 567px.

Use the converter above to instantly switch between pixels and centimeters for any value.

Common PX to CM Conversions

19px

0.5cm

38px

1cm

96px

2.54cm

189px

5cm

378px

10cm

567px

15cm

794px

21cm

1123px

29.7cm

Quick Conversion Tips

Converting PX to CM

Divide the pixel value by 37.795275591. Example: 378px ÷ 37.8 ≈ 10cm

Converting CM to PX

Multiply the centimeter value by 37.795275591. Example: 10cm × 37.8 ≈ 378px

Learn More About CSS Units

PX vs Inches, MM, and CM

Learn how pixels relate to inches, millimeters, and centimeters using the CSS 96 DPI standard, and avoid the most common print-design conversion mistake.

Read our comprehensive guide →

Related Converters

Frequently Asked Questions

How many pixels are in a centimeter?

1 centimeter equals approximately 37.8 pixels, based on the CSS standard of 96 pixels per inch (since 1in = 2.54cm).

How do I convert px to cm?

Divide the pixel value by 37.795275591. For example, 378px ÷ 37.8 ≈ 10cm. Use the converter above for instant results.

How do I convert cm to px?

Multiply the centimeter value by 37.795275591. For example, 5cm × 37.8 ≈ 189px.

Is this conversion accurate for print design?

It's accurate for the CSS/web 96 DPI standard. For professional print output, always check your printer or print service's actual DPI setting, which is often 300 DPI or higher.

Why isn't 1cm exactly a round number of pixels?

Because the ratio derives from combining the 96px-per-inch CSS standard with the metric definition of 2.54cm per inch, resulting in a repeating decimal (~37.795px per cm).