Converters

118 tools
Filter

REM to PX Converter

Easily convert REM units to PX for accurate layout scaling in CSS.

REM Value
Enter the REM value you want to convert to px

Default browser root font size is 16px

PX Value
Converted px value based on your inputE
16px
16px
Generated CSS Code
Common REM to PX Conversions
REMPX (16px base)Common Use
0.75rem12pxSmall text
0.875rem14pxSecondary text
1rem16pxBody text
1.25rem20pxSubheadings
1.5rem24pxH3 headings
2rem32pxH2 headings
3rem48pxH1 headings
About REM to PX Conversion

What is REM?

REM (Root EM) is a unit of measurement in CSS that represents the font size of the root element (typically the <html> element). By default, most browsers set the root font size to 16px, making 1rem equal to 16px unless otherwise specified.

How REM to PX Conversion Works

The formula to convert REM to PX is straightforward:

PX = REM × Root Font Size

For example, with the default root font size of 16px:

  • 1rem = 16px
  • 1.5rem = 24px
  • 2rem = 32px
  • 0.75rem = 12px

Why Use REM Units?

REM units are particularly useful for creating responsive designs because they scale relative to the root font size. This means you can adjust the entire layout of your website by simply changing the root font size, making it easier to implement responsive designs and accessibility features like text resizing.

When to Use REM vs PX

Use REM for:

  • Font sizes
  • Margins and padding
  • Widths that should scale with text size
  • Responsive layouts

Use PX for:

  • Border widths
  • Shadows
  • Elements that should maintain exact dimensions regardless of font size

Browser Support

REM units are supported in all modern browsers, including Chrome, Firefox, Safari, Edge, and Opera.