PX to REM Converter
Convert a pixel size to rem using your root font size.
Enter your details below.
How to use
- Enter the pixel value.
- Enter the root font size, usually 16.
- Press the button to see the rem value.
About this tool
Rem units scale with the font size set on the root element, so they keep layouts flexible when a user changes their default text size. This tool divides a pixel value by the root font size to give the rem equivalent. The usual root size is 16 pixels, but you can enter whatever your project uses. It converts a single value, not a whole stylesheet, and it does not account for any other scaling on the page.
Frequently asked questions
What is the usual root font size?
Most browsers default to 16 pixels, so many projects divide by 16. If your project sets a different root size, use that number instead.
Why use rem instead of pixels?
Rem sizes follow the root font size, so text and spacing can scale when a user changes their browser text size, which helps accessibility.