px ⇄ rem / em Converter
Convert pixels to rem, em, and root percentage (and back) for any custom root font size.
rem = px ÷ root font size · em is relative to the parent font size
1.5rem
1.5em
150%
Runs in this browser. Nothing is uploaded.
How to use px ⇄ rem / em Converter
Select px → rem / em or rem / em → px conversion mode.
Enter any Value and Root / parent font size in pixels.
Copy rem, em, pixel, or root percentage results individually.
Frequently asked questions
What is the difference between rem and em?
rem always divides by the root html font size, whereas em divides by the current parent element font size.