Converters tool
✦ Browser-firstPX to REM Converter
Convert pixels to rem, em and percent with your own base size.
Common sizes
| px | rem / em | % |
|---|
About this tool
Convert between pixels, rem, em and percent for responsive CSS, with an adjustable base font size and a table of common sizes you can copy from.
How to use the PX to REM Converter
- Set your base font size, usually 16px.
- Enter a value in px, rem or percent.
- Copy the converted CSS values.
Common uses
- Responsive and accessible typography
- Converting design specs to CSS
- Spacing scales
PX to REM Converter questions
What is a rem?
A unit relative to the root font size, so 1rem is 16px by default.
What is the difference between rem and em?
rem uses the root size, while em uses the font size of the current element.
Why use rem instead of px?
rem respects the font size users set in their browser, which helps accessibility.