ToolPal

CSS Units Converter

Convert between CSS units: px, rem, em, vh, vw, %, pt, cm, mm. Adjust base font size and viewport for accurate results.

Context Settings
px
px
px
px

Conversions

px
16
rem
1
em
1
vh
2.0833
vw
1.5625
%
100.00
pt
12.000
cm
0.4233
mm
4.2333

Relative units (rem, em, vh, vw, %) depend on context. Adjust the settings above for accurate results.

How to Use

Convert between CSS units: px, rem, em, vh, vw, %, pt, cm, mm. Adjust base font size and viewport for accurate results.

  1. 1Enter a numeric value in the 'Value' field.
  2. 2Select the source unit (e.g., px) from the 'From Unit' dropdown.
  3. 3All equivalent values in other CSS units appear instantly.
  4. 4Expand 'Context Settings' to set your base font size and viewport dimensions for accurate rem/em/vh/vw conversions.
  5. 5Click 'Copy' next to any result to copy it to your clipboard.

Key Features

  • Converts between px, rem, em, vh, vw, %, pt, cm, mm
  • Adjustable base font size, parent font size, and viewport dimensions
  • Instant real-time conversion as you type
  • One-click copy for each converted value
  • No server needed — all calculations run in your browser

Frequently Asked Questions

Learn More