Design tool
PX and REM Converter
Convert a pixel value to rem, or a rem value back to pixels.
Tip: press Enter in a field to run the tool.
Result will show here after you run the tool.
How to convert px and rem
- Enter the number you want to convert.
- Set the root font size if it is not 16px.
- Choose To rem or To px.
Rem is the value divided by the root font size. Pixels are the rem value multiplied by that root size.
Frequently asked questions
What root size should I use?
16px matches the usual browser default. Use another number when your stylesheet sets a different root font size.
Is the calculation sent anywhere?
No. It runs in your browser.
Related design tools
Keep working without leaving the site.
Color converter
Switch a color between HEX, RGB, and HSL.
Open toolColor contrast checker
See whether two colors pass WCAG AA and AAA.
Open toolCSS gradient
Build a linear or radial gradient and copy the CSS.
Open toolBorder radius
Preview a border-radius and copy the CSS property.
Open toolTints and shades
Build lighter and darker steps from one hex color.
Open toolAspect ratio
Simplify a width and height, or find the missing side.
Open tool