Add the requested inputs
Use the labelled fields in the workspace above. If example values are provided, try them first or replace them with your own.
Developer tools · Free online tool
Convert pixels to rem (and rem to pixels) for CSS from any root font size, one value or a whole list.
Runs locally in your browser
Use it with confidence
Use the labelled fields in the workspace above. If example values are provided, try them first or replace them with your own.
Use the main action when needed. rem = px ÷ root font size, and px = rem × root font size. em values convert the same way, relative to their parent element’s font size.
With the default 16 px root size, 24px is 1.5rem and 1.25rem is 20px. With a 10 px root, 14px is 1.4rem.
Browsers default to 16 px, but readers can change it. That is why rem sizes help accessibility: they scale with the reader’s settings.
Helpful answers
Yes. Use it as often as you need, with no sign-up and no run limit. Your inputs stay in your browser.
No. This tool runs in your browser and UtilHub does not receive or store the values you enter. Your browser or device may still retain normal local history or form data.
rem = px ÷ root font size, and px = rem × root font size. em values convert the same way, relative to their parent element’s font size.
Browsers default to 16 px, but readers can change it. That is why rem sizes help accessibility: they scale with the reader’s settings.