Tested tool guide
Tested browser tools
Checked August 16, 2026
What PX to REM Converter does, with a checked example
Enter a length in either unit and this tool returns its equivalent in the other, scaled by a root font size you can adjust (16px by default, the browser's standard). Pixel values are divided by the base to produce rem; rem values are multiplied by it to produce px, so the conversion is exact in both directions and recomputes live as you type. The result is a plain CSS-ready number. The surprise most users hit: the base is not a constant. A site that sets html { font-size: 62.5%; } makes 1rem equal 10px, so converting with the default 16px silently produces wrong sizes.
Worked example
A concrete input and expected output from the current implementation.
Input
48px (root font size left at 16px)
->
Each rem equals the root font size, so the tool divides 48 by 16. The same input with the base set to 10px would return 4.8rem.