REM to PX Converter
Instantly convert CSS rem units to pixels. Free, fast, no sign-up required.
REM ? PX Calculator
Browser default = 16px
Result
16 px
Formula: 1 - 16 = 16px
Quick Presets (Base 16px)
Formula
Example: 1.5rem - 16px = 24px
Want to start investing in crypto now?
Discover how specific cryptocurrencies work — and get a bit of each crypto to try out for yourself.
What is REM to PX Conversion?
The REM to PX converter is an essential tool for every web developer and CSS designer. REM (Root EM) is a relative CSS unit that is always proportional to the <html> root element's font size. By default, all modern browsers set the root font size to 16 pixels, so 1rem = 16px. Our free tool lets you convert any REM value to its exact pixel equivalent instantly - with support for custom base font sizes.
How the REM to PX Formula Works
The math is straightforward:
With the default 16px root: 1.5rem - 16 = 24px, 2rem - 16 = 32px, 0.75rem - 16 = 12px. If you change your root to 10px (via the 62.5% trick), then 1rem = 10px.
REM to PX Conversion Table (Base 16px)
| REM | PX (16px base) | PX (10px base) | Common Use |
|---|---|---|---|
| 0.25rem | 4px | 2.5px | Fine borders |
| 0.5rem | 8px | 5px | Small spacing |
| 0.75rem | 12px | 7.5px | Captions |
| 1rem | 16px | 10px | Body text |
| 1.25rem | 20px | 12.5px | Lead text |
| 1.5rem | 24px | 15px | H3 |
| 2rem | 32px | 20px | H1/H2 |
| 3rem | 48px | 30px | Display |
| 4rem | 64px | 40px | Hero |
Why Use REM Instead of PX?
REM units are the industry standard for accessible, scalable web design. Here is why leading developers and frameworks like Tailwind CSS and Bootstrap prefer REM:
- Accessibility: REM respects the user's browser font size preference. If a user sets their browser to 20px for readability, all rem-based elements scale proportionally.
- Consistency: A single change to
html { font-size }scales your entire design system. - Responsive Design: REM-based layouts scale gracefully across devices without dozens of media queries.
- Industry Standard: WCAG accessibility guidelines recommend rem for font sizes and spacing.
- Tailwind & Bootstrap: Both frameworks output rem values by default for all typography and spacing utilities.
When to Use PX Units
- Border widths:
border: 1px solid- fractional borders look odd - Box shadows with precise blur/spread values
- Media query breakpoints where exact pixel widths are needed
- Fixed-dimension icons that should not scale with font size
- Overriding third-party component styles