PX to REM/EM & VW/VH Converter
Convert pixels to REM, EM, VW, VH instantly. Set base font size. For front-end and Figma-to-code.
REM
0remEM
0em×
VW
0.0000vwVH
0.0000vhREM = px ÷ base. VW = (px ÷ viewport width) × 100. Default base is 16px.
How it works
Front-end developers often need to convert Figma pixel values to REM for responsive, accessible CSS. This tool does the math as you type.
Set your root font size (usually 16px). Enter a pixel value—REM and EM update instantly. Optionally set viewport dimensions to get VW/VH.
Lightweight, instant, no upload. Great for daily layout work.
