PX to REM Converter turns a pixel value into rem by dividing it by the root font size. At the default 16 pixels, 24px is 1.5rem, 14px is 0.875rem and 10px is 0.625rem.
Sizing in rem means text and spacing scale when a user increases their browser's default font size, which fixed pixels do not. Change the base field if your project uses a different root size.
Advertisement
How to use PX to REM Converter
1
Enter the pixel value
For example 18.
2
Confirm the base size
Default is 16.
3
Copy the rem value
Paste it into your CSS.
Pixels to rem (16px root)
Based on the browser default root font size of 16px.
| Pixels | rem |
|---|---|
| 1 | 0.0625 |
| 2 | 0.125 |
| 4 | 0.25 |
| 6 | 0.375 |
| 8 | 0.5 |
| 10 | 0.625 |
| 12 | 0.75 |
| 13 | 0.8125 |
| 14 | 0.875 |
| 15 | 0.9375 |
| 16 | 1 |
| 18 | 1.125 |
| 20 | 1.25 |
| 24 | 1.5 |
| 28 | 1.75 |
| 32 | 2 |
| 36 | 2.25 |
| 40 | 2.5 |
| 48 | 3 |
| 56 | 3.5 |
| 64 | 4 |
| 72 | 4.5 |
| 80 | 5 |
| 96 | 6 |
Use Cases
- Converting a pixel-based design to scalable CSS
- Building a spacing scale
- Refactoring legacy stylesheets
Frequently Asked Questions
rem respects the user's font-size setting, which matters for accessibility.
Hairline borders are usually kept in px so they stay crisp.
Setting the root font size to 62.5 percent makes 1rem equal 10px for easy arithmetic. It is common but needs care with third-party components.
Yes, PX to REM Converter is 100% free with no usage limits, no watermarks, and no hidden charges. The platform is supported by non-intrusive advertising so all tools stay free for everyone.
Yes. PX to REM Converter runs entirely in your browser using client-side JavaScript. Your files and data never leave your device and are never transmitted to our servers.