PureDevTools

CSS Units Converter

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

All processing happens in your browser. No data is sent to any server.

Convert From

px

16px

rem

1rem

em

1em

pt

12pt

%

100%

vw

0.8333vw

vh

1.4815vh

Common Values Reference

pxremempt%vwvh
10.06250.06250.756.250.05210.0926
20.1250.1251.512.50.10420.1852
40.250.253250.20830.3704
80.50.56500.41670.7407
100.6250.6257.562.50.52080.9259
120.750.759750.6251.1111
140.8750.87510.587.50.72921.2963
1611121000.83331.4815
181.1251.12513.5112.50.93751.6667
201.251.25151251.04171.8519
241.51.5181501.252.2222
3222242001.66672.963
4833363002.54.4444
6444484003.33335.9259
96667260058.8889

Convert between CSS units using the specified base font size and viewport dimensions. The em unit uses the base font size (same as rem in this context). Percentage is relative to the base font size.

Why This Tool

Responsive design requires working with multiple CSS units — px, rem, em, vw, vh, %, ch. Converting between them depends on context like base font size and viewport dimensions. This tool handles the math so you can quickly translate values between any CSS units.

How It Works

Enter a value and select its unit. Set your base font size (default 16px) and viewport dimensions. The tool calculates the equivalent value in all other CSS units. Useful for converting px mockups to rem-based responsive layouts or calculating viewport-relative sizes.

Related Tools

More CSS Tools