| Unit | Result | |
|---|---|---|
| px | 16 | |
| rem | 1 | |
| em | 1 | |
| vw | 0.8333 | |
| vh | 1.4815 | |
| vmin | 1.4815 | |
| vmax | 0.8333 |
CSS Unit Converter is a free online tool for converting between px, rem, em, vw, vh, vmin, and vmax. Batch convert CSS code with customizable root font size and viewport dimensions. Runs entirely in your browser.
What is the CSS Unit Converter?
The CSS Unit Converter lets you instantly convert between CSS length units — px, rem, em, vw, vh, vmin, and vmax. Set your root font size, parent font size, and viewport dimensions for accurate results.
Paste CSS code for batch conversion, or use the reference table for common px-to-rem and px-to-vw mappings.
How to Convert CSS Units
- 1
Enter a value
Type a numeric value and select the source unit. All equivalent values are calculated in real time.
- 2
Batch convert CSS
Paste your CSS code, choose a conversion direction, and get the converted output with matched values highlighted.
- 3
Check the reference table
Use the reference tab for quick lookups of common px-to-rem, px-to-em, and px-to-vw conversions.