PX to REM Converter
Type one value or a list, choose the unit they are in, and see them as px, rem and pt. The root font size is adjustable.
Use the tool
Loading the tool…
About PX to REM Converter
Convert values between pixels, rem or em, and points. Enter the values, one per line, and set the root font size in pixels. Rem and em values depend on the font size, so the root font size matters.
Worked example
With a root font size of 16 pixels, 24 pixels converts to 1.5 rem.
Limits
The conversion assumes the root font size you enter. If a visitor changes their browser's text size, rem values will change with it, which is usually what you want.
How to use PX to REM Converter
- Enter your values, one per line or separated by commas.
- Choose whether they are in px, rem or em, or pt, and set the root font size.
- Copy the converted list.
Good to know
- With the default root font size of 16 px, 1 rem is 16 px, so 24 px is 1.5 rem.
- In CSS one point is 4/3 of a pixel, so 12 pt is 16 px.
- An em unit is relative to the font size of the element, so it matches rem only when that font size is the root size.
- A unit written after the number, such as 16px, is accepted when it matches the chosen unit.
Frequently asked questions
What is the root font size?
It is the font size of the html element. Browsers use 16 px unless a page or the user changes it.
Can I convert a whole list?
Yes. Put one value on each line, or separate them with commas or spaces, up to 500 values.
Is anything I type saved or sent?
No. The work happens in your browser on this page, and nothing is stored or sent to us.