Formula
rem = px / root size ; pt = px × 0.75
Worked example
With these values
- Size in pixels
- 24
- Root font size (px)
- 16
The calculator gives
- rem / em
- 1.5
- Points (pt)
- 18
These values are only an illustration. Replace them with yours in the form above.
How "rem / em" changes with "Size in pixels"
| Size in pixels | rem / em |
|---|---|
| 12 | 0.75 |
| 19.2 | 1.2 |
| 24 | 1.5 |
| 28.8 | 1.8 |
| 36 | 2.25 |
All other values stay as in the example.
How to use this calculator
Change any value: results update as you type. Copy a result with one click, or share a link that keeps all your values.
Questions
How is the result calculated?
The calculator applies this rule: rem = px / root size ; pt = px × 0.75
Is it free?
Yes. It is free, needs no account, and works on phone and desktop.
Are my numbers stored?
Everything runs in your browser. Nothing you type is sent to a server.