PX to REM Converter
Convert px to rem and rem to px online for free. Set your base font size, convert any value and check a table of common sizes.
Common values (base 16px)
| px | rem | px | rem |
|---|---|---|---|
| 1px | 0.0625rem | 2px | 0.125rem |
| 4px | 0.25rem | 8px | 0.5rem |
| 10px | 0.625rem | 12px | 0.75rem |
| 14px | 0.875rem | 16px | 1rem |
| 18px | 1.125rem | 20px | 1.25rem |
| 24px | 1.5rem | 28px | 1.75rem |
| 32px | 2rem | 36px | 2.25rem |
| 40px | 2.5rem | 48px | 3rem |
| 56px | 3.5rem | 64px | 4rem |
| 80px | 5rem | 96px | 6rem |
| 120px | 7.5rem | 160px | 10rem |
About PX to REM Converter
Convert pixels to rem units (and back) against any base font size — the browser default of 16px is pre-set, change it for Tailwind or custom setups.
A reference table of the most common values is always visible for quick lookups. Everything is computed locally in your browser.
How to use PX to REM Converter
- Set the base font size if it isn't the browser default of 16px.
- Type a px or rem value and read the converted result instantly.
- Use the table for the common sizes without typing.
Frequently asked questions
How do I convert px to rem?
Divide the pixel value by the base font size: 24px ÷ 16px = 1.5rem. Change the base here if your project uses a different root size.
Why use rem instead of px?
rem scales with the user's root font-size preference, so layouts and text respect accessibility settings — px stays fixed.
Is rem or em better?
rem is predictable since it always references the root element, while em compounds with parent font sizes — rem is the safer default for sizing.