DevToolBoxFREE
Blog

CSS Unit Converter Online - Free px to rem, em, vw Calculator

Free online CSS unit converter. Convert between px, rem, em, vw, vh, pt, cm, mm and more with configurable base font size.

Used for rem, em, and % calculations

UnitValue
px16
rem1
em1
vw1.5625
vh2.0833
%100
pt12
cm0.4233
mm4.2333
in0.1667

Common CSS Unit Conversions

UnitDescriptionExample
pxPixels (absolute)16px
remRoot em (relative to html font-size)1rem = 16px (default)
emRelative to parent element font-size1em = parent font-size
vwViewport width (1vw = 1% of viewport width)50vw = half screen width
vhViewport height (1vh = 1% of viewport height)100vh = full screen height
%Relative to parent element50% = half parent width
ptPoints (typography, 1pt = 1.333px)12pt
cm/mm/inPhysical units (rarely used in web)2.54cm = 1in = 96px

CSS Unit Converter

Convert between all CSS units instantly.

Features

  • All CSS units supported
  • Configurable base font
  • Viewport dimension control
  • Quick presets
๐• Twitterin LinkedIn

Rate this tool

4.2 / 5 ยท 232 ratings

Stay Updated

Get weekly dev tips and new tool announcements.

No spam. Unsubscribe anytime.

Enjoy these free tools?

โ˜•Buy Me a Coffee