CSS Unit Converter

Convert between px, rem, em, vw, vh, and other CSS units

Share this tool

Report a problem

Describe the problem without including private input or files.

How useful was this tool?

How useful was this tool?

Settings & input

Quick presets & examples

Your inputs are never uploaded or stored.

Results

Enter your values to see the results.

Reference & calculation details

About the Free CSS Unit Converter

The CSS Unit Converter shows a length in every major CSS unit at once, so a value from a design file can go straight into your stylesheet. For converting pixels to rem, em to percentages, or viewport units to absolute measurements, this tool provides accurate, real-time conversions across 10 different CSS units simultaneously.

Understanding and correctly using CSS units is fundamental to building responsive, accessible websites. Relative units like rem and em scale with font size settings, making your layouts adapt to user preferences and accessibility needs. Viewport units (vw, vh) create fluid designs that respond to screen size. Absolute units (px, pt, cm, mm, in) provide fixed measurements for precise control when needed.

This CSS unit conversion tool goes beyond simple calculators by letting you customize the base font size for rem/em/% calculations and set viewport dimensions for vw/vh conversions. All 10 unit results are displayed in a clear grid layout with one-click copy and instant unit swapping, making it the fastest way to find the right CSS value for any design context.