CSS Unit Converter

px / rem / em / vw conversion

→
1
Quick Presets:
px
px

All Unit Conversions (based on 16 px)

px16
rem1
em1
vw0.833333
vh0.833333
%100
pt12
cm0.423333
mm4.2333
in0.166667

CSS Unit Converter Guide

Supported Units

  • px — pixels, the most common absolute unit
  • rem — relative to root (html) font size
  • em — relative to parent element font size
  • vw — percentage of viewport width
  • vh — percentage of viewport height
  • % — percentage relative to parent element
  • pt / cm / mm / in — print/physical units

Use Cases

  • Unit conversion for responsive layout design
  • Convert design px to rem/vw for adaptive layouts
  • Quick rem-to-px conversion in frontend development
  • Convert between print and screen CSS units
  • Cross-platform physical-to-pixel unit conversion

常见问题

相关工具