CSS & Layout
CSS Unit Converter
Type a value, or paste a full value like 1.5rem, and instantly see it in
every common CSS unit. Bases for rem, em, percent, and viewports are configurable.
Everything runs in your browser — your input never leaves the page.
Value to convert
live
Type a number on its own, or paste a full value such as
1.5rem or 50% — the unit updates automatically.
Conversion bases
configurableRelative units need a reference. Defaults match a typical desktop browser; change them to match your project.
Result
liveHow it works
Every value is first resolved to pixels, then divided back out into each unit. Absolute
units are fixed (1in = 96px, 1pt = 96/72px), while relative
units depend on the bases above: rem uses the root font size,
em uses the parent font size, % uses the percentage basis,
and vw/vh/vmin/vmax use the
viewport size. Select any row to copy that value. All conversion happens in your
browser and nothing is ever sent anywhere.