PX to REM Converter

Convert pixels to rem and rem to pixels with a configurable base font size.

px
Common conversions
PixelsREM

How to use

  1. Set your base font size (default is 16px).
  2. Enter a pixel value to get rem, or a rem value to get pixels.
  3. Click any value in the reference table to copy it.

Frequently asked questions

How do I convert px to rem?

Divide the pixel value by the base font size (usually 16px). For example, 24px / 16 = 1.5rem. This tool does it automatically.

What is the default base font size for rem?

The default base font size in all browsers is 16px. This means 1rem = 16px unless you change the font-size on the html element.

Why should I use rem instead of px?

rem units are relative to the root font size, making your layouts more accessible. Users who change their browser font size will see your design scale proportionally.

How do I convert rem back to px?

Multiply the rem value by the base font size. For example, 1.5rem × 16 = 24px.

Last updated

Powered by maratool