CSS Unit Converter
px, rem, em, vw and pt against your base size.
Settings
Used for rem, em and %
Used for vw
Used for vh
Conversions
16pxinput1rem1em12pt0.8333vw1.4815vh100%
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)