REM to PX
Convert rem values to pixels with any root font size.
Convert REM (rem) to Pixels (px). Results update as you type.
rem
Browser default is 16px
rem to px conversion table (base 16px)
| REM | Pixels |
|---|---|
| 0.125rem | 2px |
| 0.25rem | 4px |
| 0.5rem | 8px |
| 0.625rem | 10px |
| 0.75rem | 12px |
| 0.875rem | 14px |
| 1rem | 16px |
| 1.125rem | 18px |
| 1.25rem | 20px |
| 1.5rem | 24px |
| 1.75rem | 28px |
| 2rem | 32px |
| 2.5rem | 40px |
| 3rem | 48px |
| 4rem | 64px |
| 5rem | 80px |
| 6rem | 96px |
REM to PX Converter
Find out how many pixels a rem value actually measures. Enter a value such as 1.5, keep the default 16px root or type your own, and the pixel result appears right away. It is handy when you inspect a stylesheet, audit a design system, or compare CSS against a pixel-based mockup.
Formula
px = rem × root font size
The root font size is the computed font-size of the html element.
| REM | 16px root | 10px root (62.5%) | 18px root |
|---|---|---|---|
| 0.75rem | 12px | 7.5px | 13.5px |
| 0.875rem | 14px | 8.75px | 15.75px |
| 1.25rem | 20px | 12.5px | 22.5px |
| 2.4rem | 38.4px | 24px | 43.2px |
Worked example: reading a framework's spacing scale
Many CSS frameworks define spacing in quarter-rem steps. A class that sets padding: 1.5rem means 1.5 × 16 = 24px by default. A gap of 0.625rem is 10px. If your project sets the root to 18px for better readability, those same classes become 27px and 11.25px – enter 18 as the base to check them.
Why rem values are not always 16px
The 16px figure is only a default. Three things can change it:
- Your own CSS, such as
html { font-size: 62.5%; }(10px) orhtml { font-size: 112.5%; }(18px). - The user's browser setting for default text size.
- Fluid typography like
html { font-size: clamp(16px, 1vw + 12px, 20px); }, which changes the root with the viewport.
In the third case, convert at each end of the range to see the smallest and largest pixel size.
Quick checks
Use the bulk box to paste a list of rem values from a design token file and get all pixel sizes at once. To convert the other way, open PX to REM; for print sizes, try REM to Point.
Frequently Asked Questions
How do I convert rem to px?
Multiply the rem value by the root font size. With the default 16px root, 1.5rem × 16 = 24px and 0.875rem × 16 = 14px.
What is 1rem in pixels?
1rem equals the font size of the html element. That is 16px in all major browsers unless your CSS or the user's browser settings change it.
What if the user changes their browser font size?
Then the root font size changes and every rem value scales with it. A user who sets the default to 20px sees 1.5rem as 30px instead of 24px.