Free tool
PX to REM converter
Type a pixel value to get rem, or a rem value to get pixels. Change the base size if your website does not use 16 pixels.
24px = 1.5rem
Common sizes at a base of 16px
| Pixels | REM |
|---|---|
| 12px | 0.75rem |
| 14px | 0.875rem |
| 16px | 1rem |
| 18px | 1.125rem |
| 20px | 1.25rem |
| 24px | 1.5rem |
| 28px | 1.75rem |
| 32px | 2rem |
| 40px | 2.5rem |
| 48px | 3rem |
| 56px | 3.5rem |
| 64px | 4rem |
What rem means
Rem stands for "root em". One rem equals the base font size of the page, which is 16 pixels in most browsers unless the website changes it. So 1.5 rem is usually 24 pixels.
Designers work in pixels in tools such as Figma. Developers often build with rem, because sizes in rem grow and shrink together when a reader changes the text size in their browser. This converter bridges the two.
When to use each unit
Use rem for font sizes, and usually for spacing, so the whole layout scales with the text. Use pixels for things that should never scale, such as a one pixel border.
Questions about this tool
How do I convert px to rem?
Divide the pixel value by the base font size. With the usual base of 16 pixels, 24 pixels is 24 divided by 16, which is 1.5 rem.
Is 1 rem always 16 pixels?
Only when the base font size is 16 pixels, which is the browser default. A website can set a different base, and a reader can change their own default text size, which is exactly why rem is useful.
Should designers give sizes in px or rem?
Design files are normally in pixels. A good handoff lists the base size and a type scale, so developers can convert consistently. Agree on this before development starts.
Read more
More free tools
Need this done properly for your product?
Tithi designs apps, websites and brand graphics with these details handled for you. I reply to every enquiry within 24 hours.