Updated
PX to REM converter explained
Divide a pixel length by the document’s root font size to get rem, or multiply rem by that root size to get pixels. Enter the root size used by your stylesheet rather than assuming every site uses the same one.
A worked example
At a root font size of 16px, 24px is 1.5rem. If the root font size changes to 20px, the same 24px is 1.2rem.
Before you use the result
This is CSS length arithmetic, not physical screen measurement. Browser zoom and device pixel density do not change the formula. Output rounds to eight decimal places.
Cite this page
ToolOctopus. “PX to REM converter.” Updated 2026-09-20. https://tooloctopus.com/px-to-rem-converter.
Add an access date if your instructions require one.
Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. Licence and source code.
