Convert pixels to rem, or rem to pixels, using your own base font size. Nothing leaves your browser.
rem = px ÷ base font size. px = rem × base font size. The default base is 16px.
Divide the pixel value by the root font size. With the common browser default of 16px, 24px is 1.5rem.
Browsers default to 16px for the root font size unless the page or the user's settings change it. You can set a different base above.
rem units scale with the root font size, so text and spacing respect a user's browser font-size setting.
Multiply the rem value by the root font size. 2rem at a 16px base is 32px.
Free tool, provided as is, with no guarantee. Results are for general information. Please do not enter personal information in feedback.