Conversion Form

PX
CM

About the Unit

Pixel (px): A pixel is the smallest visible measurement unit on a digital screen, commonly used to describe the resolution and dimensions of graphical elements and text. In a CSS context, the pixel is an absolute unit, but its perception can vary depending on the device's pixel density (such as on Retina displays). Although it is a fixed unit, the pixel value in CSS is standardized to ensure consistency across devices with different resolutions. For example, an element with 100px width will always render with 100 pixels of width on the screen, but on devices with higher pixel density, the content display may appear sharper. The px unit is widely used in graphical interface design, typography, and other visual properties, being the predominant choice in many web design approaches.

Pro Tip: pxcm

1cm = 37.795px. Convert px to cm for print layouts.

Quick Reference: Unit Conversion by Tens

PXCM
10px0.264583cm
20px0.529167cm
30px0.79375cm
40px1.058333cm
50px1.322917cm
60px1.5875cm
70px1.852083cm
80px2.116667cm
90px2.38125cm
100px2.645833cm
110px2.910417cm
120px3.175cm
130px3.439583cm
140px3.704167cm
150px3.96875cm
160px4.233333cm
170px4.497917cm
180px4.7625cm
190px5.027083cm
200px5.291667cm
210px5.55625cm
220px5.820833cm
230px6.085417cm
240px6.35cm
250px6.614583cm

Live Unit Preview

See how different CSS units affect the size of the box below:

10px

10rem

10em

10%

10vw

10vh

Common Mistake

1cm = 37.795px. Convert px to cm for print layouts.

Real Code Example

/* Mobile-first card with px → cm */
.card {
  padding: 0px;     /* undefinedcm */
  font-size: 1.5rem;
  width: min(90vw, 40ch);
}

Frequently Asked Questions About PX

When should I use px instead of px?

Use px for pixel-perfect control in fixed layouts.

How many px is 1px?

1px = 0.0625rem assuming a 16px base.

Is px affected by zoom?

Yes, it scales with browser zoom but remains fixed in layout.

Is px good for fonts?

Not recommended for fonts due to poor accessibility scaling.

Keyboard Shortcuts

  • Ctrl + C: Convert
  • Ctrl + I: Invert units
  • Esc: Reset values

More popular conversions