CSS Units Converter
Convert px, rem, em, pt, cm, mm, in, pc, ch, vw, and vh with a configurable root font size in your browser.
Why convert CSS length units?
Design systems mix px, rem, em, and viewport units. Converting between them keeps spacing consistent when you change the root font size or test responsive layouts. This converter normalizes any supported length to pixels, then shows equivalent values across common CSS units.
For a focused px to rem workflow, see the PX to REM Converter. To format stylesheets before measuring rules, try the CSS Beautifier.
Frequently Asked Questions
Are em and rem treated the same here?
Both use the root font size you provide. Real em values depend on the parent element font size; this tool assumes a document-level reference so you get a quick comparison table.
How are vw and vh calculated?
Viewport width and height fields default to 1280 by 720 pixels. Adjust them to match your artboard or device width so vw and vh conversions reflect your layout.
What is the ch unit based on?
The ch conversion uses an average character width in pixels (default 8). Change it when you work with monospace fonts or typography specs that define a different ch width.