# Convert PX to REM

> Convert pixels to rem online. Free PX to REM converter with a worked example at the standard 16px root font size, plus a live calculator.

Rem units scale with the root font size, which makes them the go-to choice for accessible, responsive typography. This converter turns pixel values into rem against a configurable root (16px by default), so a value from your design file becomes the rem your stylesheet should use.

## Example: PX → REM

Input:
```
12px
16px
20px
24px
32px
```

Output:
```
0.75rem
1rem
1.25rem
1.5rem
2rem
```

## How to convert PX to REM

1. Take the pixel value you want to convert.
2. Divide it by the root font size (16px in a default browser).
3. The result is your value in rem — e.g. 24 ÷ 16 = 1.5rem.

## FAQ

### What is the default px to rem ratio?

With the browser default root font size of 16px, 1rem equals 16px. So 16px = 1rem, 8px = 0.5rem, and 32px = 2rem.

### Should I use rem instead of px?

Rem respects the user's browser font-size preference, so text and spacing scale for people who increase their default size. That makes rem the more accessible choice for font sizes and most spacing.

## Related converters

- [REM → PX](https://www.devkult.com/convert/rem-to-px.md)
- [PX → EM](https://www.devkult.com/convert/px-to-em.md)
- [REM → EM](https://www.devkult.com/convert/rem-to-em.md)

Open the interactive converter: https://www.devkult.com/convert/px-to-rem