Conversion Form

PX
MM

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: pxmm

1mm = 3.779px. Use mm for print designs that need precision.

Quick Reference: Unit Conversion by Tens

PXMM
10px2.645833mm
20px5.291667mm
30px7.9375mm
40px10.583333mm
50px13.229167mm
60px15.875mm
70px18.520833mm
80px21.166667mm
90px23.8125mm
100px26.458333mm
110px29.104167mm
120px31.75mm
130px34.395833mm
140px37.041667mm
150px39.6875mm
160px42.333333mm
170px44.979167mm
180px47.625mm
190px50.270833mm
200px52.916667mm
210px55.5625mm
220px58.208333mm
230px60.854167mm
240px63.5mm
250px66.145833mm

Live Unit Preview

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

10px

10rem

10em

10%

10vw

10vh

Common Mistake

1mm = 3.779px. Use mm for print designs that need precision.

Real Code Example

/* Mobile-first card with px → mm */
.card {
  padding: 0px;     /* undefinedmm */
  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