Conversion Form

PX
PT

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

1px = 0.75pt. Use pt for print and px for screen displays.

Quick Reference: Unit Conversion by Tens

PXPT
10px7.500019pt
20px15.000038pt
30px22.500056pt
40px30.000075pt
50px37.500094pt
60px45.000113pt
70px52.500131pt
80px60.00015pt
90px67.500169pt
100px75.000188pt
110px82.500206pt
120px90.000225pt
130px97.500244pt
140px105.000263pt
150px112.500281pt
160px120.0003pt
170px127.500319pt
180px135.000338pt
190px142.500356pt
200px150.000375pt
210px157.500394pt
220px165.000413pt
230px172.500431pt
240px180.00045pt
250px187.500469pt

Live Unit Preview

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

10px

10rem

10em

10%

10vw

10vh

Common Mistake

1px = 0.75pt. Use pt for print and px for screen displays.

Real Code Example

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