CSS Unit Converter

px, rem, em, vw and pt against your base size.

Runs in your browser
Settings
Used for rem, em and %
Used for vw
Used for vh
Conversions
  • Pixels16pxinput
  • Root EM1rem
  • EM1em
  • Points12pt
  • Viewport width0.8333vw
  • Viewport height1.4815vh
  • Percentage100%

Common presets

Converted16px = 16px · base 16px · viewport 1920 × 1080

About CSS units

px
Absolute pixels, device-independent
rem
Relative to the root element font size
em
Relative to the parent element font size
pt
Points (1pt = 1/72 inch)
vw
1% of the viewport width
vh
1% of the viewport height
%
Percentage relative to the parent (font-size based here)

More tools

All tools →