Converts to and from
Converts to and from all CSS length units simultaneously.
500+ fast, free tools. Most run in your browser only; Image & PDF tools upload files to the backend when you run them.
Convert between CSS units — px, em, rem, vh, vw, pt, pc, cm, mm, in — with configurable base font size and viewport dimensions.
The CSS Unit Converter converts between all common CSS length units — absolute units (px, pt, pc, cm, mm, in) and relative units (em, rem, vh, vw, vmin, vmax, ch, ex) — using configurable reference values for base font size and viewport dimensions. The converter shows all unit equivalents simultaneously from a single input value, making it easy to work across design and code contexts. Setting the root font size (default 16px) is essential for accurate rem conversions; setting viewport width/height enables correct vh/vw calculations. This is an everyday tool for frontend developers and designers working across different unit systems.
Converts to and from all CSS length units simultaneously.
Configurable base font size and viewport size for accurate relative unit conversions.
All units update in real time from any input field.
Quick-copy buttons for each unit value.
Converts to and from all CSS length units simultaneously — px, em, rem, %, vh, vw, vmin, vmax, pt, pc, cm, mm, in, ch, ex.
Configurable base font size and viewport size for accurate relative unit conversions in any project context.
Input: 24px (with 16px root font-size)
Output: 1.5rem, 1.5em (at 16px parent), 18pt, 0.635cm, 0.25in
Input: 100vh (viewport 390x844)
Output: 844px, 52.75rem (at 16px root), 633pt
Input: 12pt
Output: 16px, 1rem (at 16px root), 4.23mm, 0.167in
Input: 1rem (with 10px root font-size)
Output: 10px, 7.5pt, 0.625em (at 16px parent context)