Convert a rem value to pixels for a given root font size.
PX to REM Converter
Convert pixels to rem for a given root font size.
- Free
- No sign-up
- Runs in your browser
Input
A number, e.g. 24.
The root font size; defaults to 16.
Fill in Pixels to continue.
Enter your input to see the result
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter a pixel value and the root font size.
- 2
The result is the equivalent rem.
Questions about PX to REM Converter
Why use rem instead of px?
rem scales with the user’s chosen font size, which is better for accessibility than fixed pixels.
Is anything sent anywhere?
No. The conversion runs entirely in your browser; the colours never leave the page.
Does the PX to REM Converter work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the PX to REM Converter keeps working with the network switched off and nothing is ever sent to a server.
Is anything I enter into the PX to REM Converter uploaded or stored?
No. The PX to REM Converter runs in your browser, so whatever you type or paste never leaves your device — there is no server round-trip, nothing is logged, and there is nothing to delete afterwards.
Can I use the PX to REM Converter on a phone or tablet?
Yes. The page is responsive, so the PX to REM Converter works the same in a mobile browser as on a desktop, and there is no app to install.
Related tools
Other tools you might reach for next.
Convert a hex colour to RGB, with the colour in all common formats.
Convert an RGB colour to a hex code.
Convert a hex colour to HSL (hue, saturation, lightness).
Convert an HSL colour to a hex code.
Convert an RGB colour to HSL.
Convert an HSL colour to RGB.
Convert an RGB colour to CMYK (for print).