This PX to CM Converter is a fast, browser-based tool for converting pixel values to centimeters and back.
Designers and developers constantly deal with unit mismatches between screen and print. This tool bridges that gap instantly.
Key features:
-
Bidirectional conversion -- switch between PX to CM and CM to PX with one click
-
DPI presets for common environments: Screen (96), Print (72), HD (120), Retina (144), and 4K (192)
-
Custom DPI input for non-standard displays or print specs
-
Live formula display shows the exact calculation as you type
-
Reference table of common values, clickable to populate the input
-
Copy button to grab the result in one click
No installation. No signup. Just type a number and get your answer.
What is PX to CM Conversion
A pixel (PX) is a relative unit tied to screen resolution.
A centimeter (CM) is an absolute physical unit. It always means the same thing, whether on paper or a ruler.
The problem is these two units don't speak the same language - converting between them requires knowing the DPI (dots per inch) of the display or output device.
Without DPI, the conversion is meaningless.
PX to CM Converter
Use the converter below to get an instant result.
Enter your pixel value and your screen or output DPI, and the tool calculates the exact centimeter equivalent.
The default DPI is set to 96, which is the standard for most web browsers and Windows displays.
PX to CM Conversion Formula
The formula is straightforward:
cm = px × 2.54 ÷ DPI
At 96 DPI, 100px equals 2.646 cm.
Change the DPI and the result changes completely - same pixel count, different physical size.
How to Calculate PX to CM Manually
Multiply your pixel value by 2.54, then divide by your DPI value.
Example: 200px ÷ 96 DPI × 2.54 = 5.292 cm.
No calculator needed for quick estimates once you know the formula.
What DPI Value to Use
-
96 DPI - standard for web and Windows screens
-
72 DPI - older Mac screens; still used in some print contexts
-
72–300 DPI - print workflows, depending on output quality
If you're designing for screen, use 96. For print, check your document settings first.
PX to CM Conversion Table
Quick reference at 96 DPI - the screen resolution standard for most displays.
| Pixels (PX) | Centimeters (CM) |
|---|---|
| 1 px | 0.02646 cm |
| 2 px | 0.05291 cm |
| 3 px | 0.07937 cm |
| 4 px | 0.10583 cm |
| 5 px | 0.13229 cm |
| 6 px | 0.15875 cm |
| 8 px | 0.21167 cm |
| 10 px | 0.26458 cm |
| 12 px | 0.31750 cm |
| 14 px | 0.37041 cm |
| 16 px | 0.42333 cm |
| 18 px | 0.47625 cm |
| 20 px | 0.52916 cm |
| 24 px | 0.63499 cm |
| 28 px | 0.74082 cm |
| 32 px | 0.84665 cm |
| 36 px | 0.95249 cm |
| 40 px | 1.05832 cm |
| 44 px | 1.16415 cm |
| 48 px | 1.26998 cm |
| 50 px | 1.32290 cm |
| 56 px | 1.48565 cm |
| 64 px | 1.69330 cm |
| 72 px | 1.90095 cm |
| 80 px | 2.10860 cm |
| 90 px | 2.37573 cm |
| 96 px | 2.540 cm |
| 100 px | 2.64583 cm |
| 128 px | 3.387 cm |
| 256 px | 6.773 cm |
| 512 px | 13.547 cm |
| 1024 px | 27.093 cm |
At 72 DPI, every value above increases by roughly 33%.
CM to PX Converter
Need the reverse? The formula flips:
px = cm × DPI ÷ 2.54
At 96 DPI, 1 cm equals approximately 37.8 pixels.
This comes up constantly when converting print dimensions into screen-ready pixel values - especially when moving specs from a physical mockup into a digital layout.
CM to PX Conversion Table
Quick reference at 96 DPI.
| Centimeters (CM) | Pixels (PX) |
|---|---|
| 0.1 cm | 3.77953 px |
| 0.2 cm | 7.55906 px |
| 0.3 cm | 11.33858 px |
| 0.4 cm | 15.11811 px |
| 0.5 cm | 18.89764 px |
| 0.6 cm | 22.67717 px |
| 0.8 cm | 30.23623 px |
| 1 cm | 37.79528 px |
| 1.2 cm | 45.35433 px |
| 1.4 cm | 52.91339 px |
| 1.5 cm | 56.69291 px |
| 1.6 cm | 60.47244 px |
| 1.8 cm | 68.03150 px |
| 2 cm | 75.59055 px |
| 2.4 cm | 90.70866 px |
| 2.8 cm | 105.82677 px |
| 3 cm | 113.38583 px |
| 3.2 cm | 120.94488 px |
| 3.6 cm | 136.06299 px |
| 4 cm | 151.18110 px |
| 4.4 cm | 166.29921 px |
| 4.8 cm | 181.41732 px |
| 5 cm | 188.97637 px |
| 5.6 cm | 211.02362 px |
| 6.4 cm | 241.88976 px |
| 7.2 cm | 272.75591 px |
| 8 cm | 303.62205 px |
| 9 cm | 340.15748 px |
| 10 cm | 377.95276 px |
| 15 cm | 567 px |
| 21 cm | 794 px |
| 29.7 cm | 1123 px |
These values map directly to standard paper sizes - A4 is 21 × 29.7 cm, or 794 × 1123 px at 96 DPI.
PX to CM in Web Design
Pixels are the default unit for screen design. Centimeters are for physical output.
The two rarely overlap - except when a screen design needs to become something you can print, hold, or measure in the real world.
PX to CM for Print
Print workflows run on absolute units: millimeters, centimeters, inches.
If you're handing off a design to a printer, your Figma or Photoshop document needs physical dimensions, not pixel values.
Convert your canvas size first, then set the document DPI to match the print resolution - usually 150 DPI for standard print, 300 DPI for high-quality output.
PX to CM in CSS
CSS supports cm as a unit, but it's unreliable for screen layouts.
Browsers calculate 1 cm as 37.8px at 96 DPI, but actual physical rendering depends on the display's real pixel density - which browsers don't always account for accurately.
Use cm in CSS only inside print stylesheets (@media print). For everything else, stick with px, rem, or %.
PX to Other Unit Conversions
Pixels convert to more than just centimeters.
Depending on the project - typography, print, responsive layouts - you'll need different target units.
PX to MM
The formula: mm = px × 25.4 ÷ DPI
At 96 DPI, 1px = 0.265 mm; 100px = 26.458 mm.
|
PX |
MM (96 DPI) |
|---|---|
|
10 |
2.646 mm |
|
50 |
13.229 mm |
|
100 |
26.458 mm |
|
300 |
79.375 mm |
PX to Inches
Formula: in = px ÷ DPI
At 96 DPI, 96px = 1 inch exactly. Clean, simple, useful for print specs.
|
PX |
Inches (96 DPI) |
|---|---|
|
96 |
1 in |
|
192 |
2 in |
|
480 |
5 in |
|
960 |
10 in |
You can also use the PX to Inches Converter for quick lookups.
PX to PT (Points)
Points are used in typography - print and digital both.
At 96 DPI: pt = px × 0.75. So 16px = 12pt, which is standard body text size in most print documents.
Use the PX to PT Converter when working across print and screen type specs.
PX to EM and REM
EM and REM are relative units in CSS, not absolute ones - so the conversion isn't fixed.
1rem equals whatever the root font size is (usually 16px by browser default). 1em depends on the parent element's font size.
These matter most for responsive typography and scalable layouts.
Screen Resolution and PX to CM Accuracy
This is where most converters fall short.
The same pixel value produces a different physical size on every display - because screens have different pixel densities.
A 100px element on a 96 DPI monitor measures 2.646 cm physically. On a 220 DPI Retina display, that same 100px element is less than 1.16 cm wide.
The converter gives you the mathematically correct result for the DPI you enter. It cannot tell you what size the element actually appears on your specific screen.
How to Find Your Screen's DPI
-
Windows: Settings → Display → Advanced display → check "Resolution" and calculate DPI based on screen size
-
Mac: System Preferences → Displays (Retina displays run at 2× scaling, typically 220+ DPI)
-
Online tools: search "what is my screen DPI" - several browser-based tools detect it automatically
Device Pixel Ratio and Scaling
Device pixel ratio (DPR) is the ratio between physical pixels and CSS pixels.
A DPR of 2 (common on Retina and most modern mobile screens) means 1 CSS pixel = 2 physical pixels. The screen looks sharper, but CSS measurements stay the same.
This is why a viewport of 375px on an iPhone doesn't mean 375 physical pixels - the DPR multiplies that behind the scenes.
Standard DPI Values by Device Type
|
Device Type |
Typical DPI |
|---|---|
|
Windows desktop |
96 DPI |
|
Mac (non-Retina) |
72–96 DPI |
|
Mac Retina |
144–220 DPI |
|
iPhone |
326–460 DPI |
|
Android flagship |
400–600 DPI |
|
Standard print |
150–300 DPI |
|
High-quality print |
300–600 DPI |
For web-to-print conversions, always use the document's output DPI - not your screen's native DPI.
If you work with other unit formats regularly, tools like the RGB to HEX Converter or the CSS Clamp Calculator follow the same logic: one input value, one output, accuracy tied directly to the parameters you set.
FAQ on PX To CM Converters
How do I convert PX to CM?
Use the formula: cm = px × 2.54 ÷ DPI.
At the standard 96 DPI used by most web browsers, 100px equals 2.646 cm. Change the DPI value and the result changes accordingly.
What DPI should I use for the conversion?
Use 96 DPI for web and Windows screen designs. Use 72 DPI for older Mac contexts. For print, check your document settings - standard print runs at 150–300 DPI.
Why does the same pixel value look different on different screens?
Because screens have different pixel densities. A 100px element on a 96 DPI monitor measures 2.646 cm. On a 220 DPI Retina display, that same element is physically smaller - under 1.2 cm.
Is 1px always the same physical size?
No. A pixel is a relative unit tied to screen resolution, not a fixed physical measurement. Its actual size depends entirely on the display's DPI or PPI. Only absolute units like cm or mm have a fixed physical size.
Can I use CM units directly in CSS?
Technically yes, but it's unreliable for screen layouts. Browsers interpret 1 cm as 37.8px at 96 DPI, but rendering varies across displays. Use cm only in print stylesheets. For screen design, stick with px, rem, or %.
How many pixels is 1 centimeter?
At 96 DPI, 1 cm equals approximately 37.8 pixels. The formula is: px = cm × DPI ÷ 2.54. At 72 DPI, 1 cm equals roughly 28.35 px.
What is the difference between DPI and PPI?
DPI (dots per inch) refers to print output - how many ink dots a printer places per inch. PPI (pixels per inch) refers to screen pixel density. For pixel-to-centimeter conversion purposes, both values are used the same way in the formula.
How do I convert PX to CM for print in Photoshop or Figma?
Set your document resolution to your target print DPI (usually 300 DPI), then enter your canvas size in centimeters. Photoshop and Figma both handle the pixel-to-physical-unit conversion automatically once DPI is defined.
What is device pixel ratio and does it affect the conversion?
Device pixel ratio (DPR) is the ratio between physical pixels and CSS pixels. A DPR of 2 means 1 CSS pixel = 2 physical pixels. It affects how sharp content looks, but PX-to-CM conversion is still based on CSS pixels and the document DPI, not the physical pixel count.
Are there quick reference tables for PX to CM?
Yes. At 96 DPI: 16px = 0.423 cm, 32px = 0.847 cm, 96px = 2.54 cm, 256px = 6.773 cm, 1024px = 27.093 cm.
Full tables covering both screen and print DPI values are listed above.