REM to PX Converter — Decode CSS Relative Units
When you inherit a codebase or third-party design system that uses rem values everywhere, you often need to know the actual rendered pixel size for debugging, design reviews, or handoffs. This REM to PX converter decodes relative units back into concrete screen dimensions.
Reverse-convert REM values back to their pixel equivalents for any root font size. Understand what CSS relative units actually render to on screen. Essential for debugging legacy code or third-party stylesheets using rem-based design systems.
Reversing REM Values to Pixels
REM values are relative — they multiply the root element font size. To reverse this, multiply the rem value by the root font size. If the root is 16px (default), then 1.5rem × 16 = 24px.
- 1Enter the REM value you want to decode from your stylesheet.
- 2Set the root font size matching your project (default is 16px).
- 3Instantly see the exact pixel size that value renders at in a browser.
REM to PX Reverse Formula
To decode a rem value, multiply it by the root font-size. The root font-size is whatever the HTML element's font-size is set to — typically 16px in all browsers by default.
PX = REM × Root Font Size
Example: 2.5rem × 16px = 40pxREM to Pixel Conversion Chart (16px Base)
Use this lookup chart to decode rem values when reviewing a component library, design token system, or inherited stylesheet:
| REM Value | Pixel Equivalent (at 16px Base) |
|---|---|
| 0.25rem | 4 px |
| 0.5rem | 8 px |
| 0.75rem | 12 px |
| 0.875rem | 14 px |
| 1rem | 16 px |
| 1.25rem | 20 px |
| 1.5rem | 24 px |
| 2rem | 32 px |
| 3rem | 48 px |
| 4rem | 64 px |
Decoding REM FAQs
You often need this when reviewing a Figma design (which uses pixels) against a component library using rem tokens, or when debugging why a UI element renders slightly larger or smaller than expected.
Simply enter the custom root font size in the base field. For example, if your HTML element has font-size: 10px (the 62.5% trick), then 1rem = 10px.
No. REM is a CSS unit, not a physical pixel unit. It resolves to CSS pixels, which then get multiplied by the device pixel ratio internally by the operating system.
Decoding rem values is essential for QA, design-dev handoff, and debugging inherited stylesheets. Bookmark this tool to quickly translate any rem value into a pixel size your team can reference.
Related Tools
