🔄
CSS Unit Converter
Convert effortlessly between px, rem, em, vw, vh, and %.
px
px
px
Pixels (PX)
REM
Viewport Width (VW)
EMRelative
1.5em
Percentage (%)Relative
150%
Points (PT)Print
18pt
Standard Px to Rem Quick Reference Table
Generated Code Output
/* Converted Units for 24px (Base: 16px, Viewport: 1440x900) */
font-size: 1.5rem;
width: 1.6667vw;
height: 2.6667vh;
padding: 1.5em;
margin: 24px;✨ Tool Features
- Bidirectional px ⇄ rem ⇄ em ⇄ vw ⇄ % conversion
- Configurable base root font size (default 16px)
- Viewport width/height simulator for viewport units
- Quick conversion lookup table
💡 How to Use
- 1Set your project's root font size (commonly 16px).
- 2Type a value into any unit box (e.g. 24 in PX).
- 3All equivalent units (REM, EM, VW, VH, %) calculate simultaneously.
- 4Click any value to copy with its unit suffix.