Convert Centimeters to Pixels
Use this quick tool to convert a physical size in centimeters into pixels at any DPI/PPI value.
What is a cm to pixel conversion?
A centimeter to pixel conversion tells you how many digital pixels are needed to represent a real-world size at a specific resolution. Because pixels are unitless screen dots, you need a density value—usually DPI (dots per inch) or PPI (pixels per inch)—to convert from physical units like centimeters.
This matters whenever you design for print, web graphics, photo editing, scanning, posters, packaging, or any workflow that bridges physical dimensions and digital files.
The formula used by this calculator
Pixels = cm × (DPI ÷ 2.54)
Why 2.54? Because 1 inch equals exactly 2.54 centimeters. DPI is measured per inch, so we convert centimeters to inches first, then apply DPI.
Example
If your target width is 10 cm and your resolution is 300 DPI:
- 10 ÷ 2.54 = 3.937 inches
- 3.937 × 300 = 1181.1 pixels
- Rounded value: 1181 px
When should you use 72, 96, 150, or 300 DPI?
Different projects need different output quality. These common values are practical starting points:
- 72 DPI: Legacy screen workflows and very light assets.
- 96 DPI: Typical desktop display reference and CSS-related sizing contexts.
- 150 DPI: Draft print materials and moderate-quality output.
- 300 DPI: Standard high-quality print (brochures, flyers, magazines, photos).
- 600 DPI: Detailed line art, archival scans, and highly sharp print needs.
Quick reference table
| Centimeters | Pixels at 96 DPI | Pixels at 300 DPI |
|---|---|---|
| 1 cm | 38 px | 118 px |
| 2 cm | 76 px | 236 px |
| 5 cm | 189 px | 591 px |
| 10 cm | 378 px | 1181 px |
| 15 cm | 567 px | 1772 px |
| 20 cm | 756 px | 2362 px |
How to use this calculator effectively
- Enter the real-world size in centimeters.
- Input the resolution (DPI/PPI) your project requires.
- Click Convert to get the rounded pixel value and exact decimal result.
- Use rounded pixels for design dimensions, and exact values for planning or documentation.
Common use cases
1) Print design
If a printed photo must be 12 cm wide at 300 DPI, you can calculate exact image dimensions before exporting. This avoids blurry output and helps keep print quality consistent.
2) Product mockups and packaging
Packaging often starts from physical measurements. Converting to pixels at the correct DPI keeps labels, dielines, and artboards aligned with production specs.
3) UI and web assets
Even though modern UI is often responsive and CSS-based, conversion helps when working with fixed-size graphics, scanned elements, or design handoff specs.
Frequent mistakes to avoid
- Ignoring DPI: cm alone cannot be converted to pixels without density.
- Mixing DPI and PPI terms: Often used interchangeably in design tools, but context matters.
- Rounding too early: Keep precision through calculations, then round at the end.
- Using low resolution for print: 72 or 96 DPI can look soft in professional print workflows.
FAQ
Is DPI the same as image quality?
Not by itself. Quality depends on source image detail, compression, scaling, and print process. DPI is one important part, not the only factor.
Can I convert pixels back to centimeters?
Yes. Reverse formula: cm = pixels × 2.54 ÷ DPI.
Why does my result have decimals?
Many centimeter-to-inch conversions are not whole numbers. Decimals are normal; most tools round to the nearest pixel for practical use.
Final note
This cm to pixel calculator is built for speed and clarity. Enter your cm value, choose your target DPI, and you’ll immediately get the right pixel dimensions for print or screen projects.