REM to PX Converter - Convert REM Units to Pixels

Convert REM to pixels instantly online. Use the default root font-size of 16 pixels or set your own default.

REM to PX Conversion Table

EMREMPixelPercent
0.5em0.5rem8px50%
0.5625em0.5625rem9px56.25%
0.625em0.625rem10px62.5%
0.6875em0.6875rem11px68.75%
0.75em0.75rem12px75%
0.8125em0.8125rem13px81.25%
0.875em0.875rem14px87.5%
0.9375em0.9375rem15px93.75%
1em1rem16px100%
1.0625em1.0625rem17px106.25%
1.125em1.125rem18px112.5%
1.1875em1.1875rem19px118.75%
1.25em1.25rem20px125%
1.3125em1.3125rem21px131.25%
1.375em1.375rem22px137.5%
1.4375em1.4375rem23px143.75%
1.5em1.5rem24px150%
1.5625em1.5625rem25px156.25%
1.625em1.625rem26px162.5%
1.6875em1.6875rem27px168.75%
1.75em1.75rem28px175%
1.8125em1.8125rem29px181.25%
1.875em1.875rem30px187.5%
1.9375em1.9375rem31px193.75%
2em2rem32px200%
2.0625em2.0625rem33px206.25%
2.125em2.125rem34px212.5%
2.1875em2.1875rem35px218.75%
2.25em2.25rem36px225%
2.3125em2.3125rem37px231.25%
2.375em2.375rem38px237.5%
2.4375em2.4375rem39px243.75%
2.5em2.5rem40px250%
2.5625em2.5625rem41px256.25%
2.625em2.625rem42px262.5%
2.6875em2.6875rem43px268.75%
2.75em2.75rem44px275%
2.8125em2.8125rem45px281.25%
2.875em2.875rem46px287.5%
2.9375em2.9375rem47px293.75%
3em3rem48px300%

By default, the REM to Pixel converter employs a root font-size of 16 pixels. However, users have the flexibility to define their own root font-size according to the specific requirements of their project. This customization ensures that the conversions are aligned with the project's styling guidelines.

The converter consists of four input fields representing different measurement units: EM, REM, pixels, and percent. As users input values into any of these fields, the converter instantaneously recalculates the corresponding values in the other fields.

Below the pixel input field, the converter incorporates two buttons with distinct functions:

  • Set Root: This button allows users to manually set the root font size in pixels.
  • Reset: The "Reset" button restores the root font size to the default of 16 pixels.

What is REM?

REM stands for "root em," and it's a unit of measurement used in web design and development. REM is a relative unit similar to the more commonly known "em" unit, which is based on the font-size of an element. However, the key difference is that REM is calculated based on the font-size of the root element (typically the <html> element), rather than the font-size of the element itself.

In other words, when you use the REM unit to define a property like font-size or margin, it's relative to the font-size of the root element. This is particularly useful for creating responsive designs that adapt to different screen sizes and devices.

Here's how REM works:

  • Root Font-Size: The REM unit's value is determined by the font-size of the root element of the HTML document. This root font-size is typically defined in pixels (px) or other absolute units. In the absence of specific styling, the default font-size for most browsers is often around 16 pixels.
  • Calculation: When you use REM units in your CSS, the value you set is multiplied by the font-size of the root element. For instance, if the root font-size is 16px and you set an element's font-size to 2rem, it will result in 32 pixels (2 * 16px).
  • Scalability: The beauty of REM units lies in their scalability. As long as you maintain a consistent ratio with the root font-size, your design will adapt proportionally when the root font-size is adjusted. This makes it easier to create designs that respond well to changes in screen sizes and user preferences.
  • Accessibility: REM units are also helpful for ensuring better accessibility. Users who increase or decrease the default font-size in their browsers will see a consistent scaling of your design elements when using REM units.

In summary, REM (root em) units provide a responsive and scalable way to size and space elements in web design. By basing their calculations on the root font-size, they offer a practical solution for achieving consistent and adaptable designs across various devices and viewport sizes.

What is PX?

PX (Pixels) is a unit of measurement commonly used in digital design and web development to define the size, spacing, and layout of elements on a screen. Pixels are the smallest individual units that make up a digital display, such as a computer monitor, smartphone screen, or tablet display. Each pixel represents a single point of light on the screen and is the basic building block of digital images and text.

Here's how pixels work:

  • Basic Unit: A pixel is a square element that can emit light of different colors to form images and text on a screen. The resolution of a screen is often described in terms of the number of pixels it can display horizontally and vertically (e.g., 1920x1080 pixels).
  • Absolute Size: Unlike relative units like "em" or "rem," which depend on the font-size of elements, pixels are an absolute unit of measurement. This means that 1 pixel always represents the same physical size, regardless of the context or the device being used.
  • Fixed vs. Responsive Design: Using pixels allows designers to create fixed layouts where elements maintain their exact positions and sizes regardless of the user's screen size or device. However, this approach might not always be ideal for responsive design, which aims to adapt layouts to different screen sizes. For responsive designs, relative units like "em" or "rem" or percentage-based measurements are often preferred.
  • Pixel Density: It's important to note that pixel density varies across different devices. High-resolution screens (such as Retina displays) can pack more pixels into a smaller physical area, resulting in crisper and more detailed visuals.