PX to REM
Convert pixels to rem for CSS using any root font size (16px by default), with a quick table of common sizes. Free px to rem converter for responsive design.
Runs in your browser. Nothing is uploaded.
About PX to REM
rem stands for root em: a size relative to the font size of the html element, which is 16px in every browser by default. So 24px is 1.5rem and 12px is 0.75rem.
Using rem instead of px means your layout scales when someone increases their browser's default text size, an important accessibility win. If your site sets a different root size (62.5% makes it 10px), change the root font size field.
How to use PX to REM
- Enter your values in the fields.
- The answer updates instantly as you type.
- Press Copy result to save the breakdown.
Frequently asked questions
How do I convert px to rem?
Divide the pixel value by the root font size. With the default 16px root, 32px ÷ 16 = 2rem.
Should I use rem or em?
rem for most sizes, since it's predictable. em is useful when something should scale with its parent, like padding inside a button.
Is PX to REM free and private?
Yes. PX to REM is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.