CSS Unit Converter
Convert pixel values to REM, EM, VW, VH, and percentage units with customizable base root font sizes and viewport dimensions.
px
×px
Enter CSS Dimension
Pixelspx
16px
Click to copy
Root EMrem
1rem
Click to copy
Parent EMem
1em
Click to copy
Viewport Widthvw
0.8333vw
Click to copy
Viewport Heightvh
1.4815vh
Click to copy
Percentage%
100%
Click to copy
CSS Snippet
font-size: 1rem; /* 16px @ 16px root */
How to Use
01.Enter a value and select its source unit (px, rem, em, vw, vh, %).
02.Set your base root font size (default 16px).
03.Copy the converted CSS unit values.
Frequently asked questions
Browsers default to 16px root font size (1rem = 16px).
Related utilities
converters
Universal Unit Converter
Convert length, mass, temperature, digital data, time, and speed units.
converters
Color Code Converter
Convert HEX, RGB, HSL, and CMYK color codes.
converters
Unix Timestamp Converter
Convert Unix Epoch timestamps to human-readable dates.
converters
Number Base Converter
Convert numbers between Decimal, Binary, Hex, and Octal.