CSS Unit Converter

Convert between px, rem, em, %, pt, vw, and vh.

Support
Works Offline
Privacy First
No Login
No API

Value to convert

Conversions

px
16
rem
1
em
1
%
100
pt
12
vw
1.1111
vh
1.1111

em and % are treated relative to the root font size for simplicity; vw and vh use the same viewport dimension entered above.

About the CSS Unit Converter

Convert a CSS length between pixels, rem, em, percent, points, vw, and vh, with configurable root font size and viewport dimension so the conversions match your actual project setup.

Examples

16px to rem

16px, root 16px

Output

1rem

Keyboard shortcuts

  • Copy the main outputCtrl / ⌘ + Shift + C
  • Download the resultCtrl / ⌘ + S
  • Share this toolCtrl / ⌘ + Shift + S
  • Reset the inputsAlt + R
  • Open the tool search paletteCtrl / ⌘ + K

Related tools

Frequently asked questions

Read more

Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser