Convert between px, rem, em, pt, vw, vh, and % instantly, using your own base font size and viewport dimensions — no more guessing what 1.5rem actually is in pixels.
CSS supports several different units for sizing — absolute ones like px and pt, and relative ones like rem, em, vw, vh, and %. Relative units are essential for responsive, accessible design (rem in particular respects a user's browser font-size preference), but converting between them mentally is genuinely difficult, since the result depends on context: the root font size, the current element's font size, or the viewport dimensions.
This converter does that math for you: set your base font size, viewport dimensions, and the value you're converting from, and see the equivalent value in every other unit instantly — useful for translating a design mockup's pixel measurements into responsive rem/vw values, or double-checking what an existing CSS rule actually renders as on screen.
At a 16px base font size, 1.5rem converts to 24px. At a 1440px viewport width, 5vw converts to 72px.