π¨ Free Tool
CSS Converter
Convert CSS units, minify & beautify CSS, transform between px/rem/em/vw, and convert HEX β RGB β all in your browser.
Input β px values
Output β rem values
π
px β rem
Divide px by root font size (16px default). rem is relative to <html>.
π
px β em
Divide px by parent font size. em is relative to the element's font size.
π±
px β vw
Divide px by viewport width Γ 100. Great for fluid, responsive layouts.
β‘
Minify CSS
Removes comments, whitespace and line breaks to shrink file size.