CSS Unit Converter
Convert between px, rem, em, %, pt, vw, and vh.
Value to convert
Conversions
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 16pxOutput
1remRelated tools
Border Radius Generator
HTML & CSS
Fine-tune per-corner border radii visually.
Box Shadow Generator
HTML & CSS
Layer multiple box-shadows with a live preview.
Clip Path Generator
HTML & CSS
Design polygon clip-path shapes with a live preview.
CSS Animation Generator
HTML & CSS
Build keyframe animations visually with a live preview.
CSS Aspect Ratio Calculator
HTML & CSS
Simplify ratios and compute matching dimensions.
CSS Filter Playground
HTML & CSS
Tune blur, brightness, contrast, and more with a live preview.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser