PX to REM Converter
Convert pixel values to rem (and related CSS units) instantly in the browser.
What Is PX to REM Converter?
The PX to REM Converter helps you convert a pixel (px) value into rem so you can build responsive typography and spacing with scalable units. It also shows equivalent em, percent, and point values.
Conversion Formulas
Rem is calculated using your chosen base font size (basePx), where 1rem equals that base.
$$rem = \frac{px}{basePx}$$
basePx defaults to 16px
$$percent = 100 \times rem$$
$$pt = 0.75 \times px$$
How to Use
- Enter the pixel value in Pixel Value (px).
- Set Base Font Size (px) (commonly 16).
- Read the converted rem/em/percent/pt values instantly.
Frequently Asked Questions
What does “base font size” mean?
It is the pixel value that represents 1rem. If your root font size differs from 16px, adjust the base size so rem stays accurate.
Is em always the same as rem in this tool?
Yes. This tool treats em and rem against the same root size. If you use em inside elements with different font sizes, your CSS may behave differently.
Do you round results?
The converter formats output with a sensible number of significant digits for readability. For exact work, round to your preferred precision.
Can I paste the result into CSS?
Yes. The values are plain numbers, so you can paste them directly into CSS rules.
Related tools
Your recent visits