Skip to content

Design tool

PX and REM Converter

Convert a pixel value to rem, or a rem value back to pixels.

Stays in your browser Processed in your browser. The text is not sent to our servers.

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

  1. Enter the number you want to convert.
  2. Set the root font size if it is not 16px.
  3. 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.

Back to Design tools

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.

More questions on the FAQ page ยท Browse guides

Keep working without leaving the site.