⚡ CSS Unit Converter

Convert REM to PX
Instantly

Enter any REM value and get the exact pixel equivalent. Adjust the root font size to match your project.

px
Result
16px
1 × 16 = 16px
Quick Presets

The converter from REM to PX is a straightforward tool that allows users to switch between the two value measurements easily. The focus is calculating font sizes specified in REM and converting them into pixels PX.

Additionally, the converter features a user-friendly graphical interface, making it accessible to those with minimal conversion experience.

This online converter simplifies the task and is crucial for responsive web development & design. By using this converter, the text elements can be effortlessly adjusted to many screen sizes & resolutions.

Also, this tool leads the way for web developers & designers to smoothly preserve consistent typography as well as adaptability in relevant projects while refining accessibility & enhancing user experience.

What is REM?

REM, or 'root-em,' is a scalable CSS unit of measurement associated with the font size of the root element in an HTML document. Mainly, the <html> element denotes the root element in the HTML file whereas, the font size is typically fixed on the <body> element.

The REM unit deals with the element's text size, but the 'em' unit raises to the nearest text size of the parent or element's font size.

Let us understand the REM further with an example: if you set the root element with the size of 16 pixels, 1rem would be 16px. Similarly, if you alter the font size of the root to 20 pixels then one rem would be updated by around 20 pixels.

Users can fix the REM font size element in pixels or adjust to the default font size. In the case of unspecified pixel value, the unit will receive from parent elements which by default is 16px.

The REM units are commonly used in stylesheets which enable users to define sizes consistently and more flexibly. The reason is that altering the size of the root element will significantly affect all your REM-based sizes throughout the entire document.

What is PX?

The 'PX' refers to 'Pixels' in CSS. Simply put, this CSS unit is widely used to express the element's size and distances on web pages. Pixel is the unit that is fixed size, meaning the value of pixel remains the same for any screen resolution you use. You have to specify dimensions in the pixel unit to take the control of the size of elements so that you can make consistent layouts easily.

However, for a responsive web design, pixels are not an approachable option for web designers. It is because they are not adaptive to various screen resolutions therefore designers use them with some other units like viewpoint or percentage units to create flexible page layouts.

Also, when we see fixed-sized pixels on multiple screen densities it may cause readability problems, or users have to control the size of text for improved visibility which is such a hassle. This is why web designers have to use proper relative units with it.

REM to PX converter — CSS unit conversion diagram
REM to PX — CSS unit conversion reference

How to convert REM to PX?

You can easily convert REM to PX by using our free tool. By using this tool users can convert any value of rem into the px unit equal value.

Usually, browsers are set with a default font size measurement of 16px, in this way 1rem is equal to 16px. Users must enter their preferred root font size when they wish to change the value of the root font size, allowing the tool to convert values from rem to px precisely.

Step-by-Step Guide on How to Convert REM to PX

Concept of Base Font Size

Initially, you have to understand the idea of base font size — it is essential to set the base value as rem values are relative to this measurement. The base font size in CSS is set on HTML elements worldwide; also it is considered the basic in REM units as scaling elements.

Feed REM Value

Now type the required REM value, carefully input your value in the 'REM' slot, and the tool instantly converts the value from rem to px precisely.

How to calculate REM to PX?

You can also use a formula to convert rem to px, if you do not want to use a convertor you should use this formula to get an accurate value.

Formula:

px  =  rem  ×  font-size (the font size of HTML root element)
For instance, if the root element font size is by default 16px and you are willing to get the value of 2rem to px:
2rem = 2 × 16 = 32px  |  Answer: 2REM = 32px

REM to PX Conversion Table

Reference Table (16px root)
66 entries
REM PX (16px root)
0.03125rem 0.5px
0.0625rem 1px
0.125rem 2px
0.1875rem 3px
0.25rem 4px
0.3125rem 5px
0.375rem 6px
0.4375rem 7px
0.5rem 8px
0.5625rem 9px
0.625rem 10px
0.6875rem 11px
0.75rem 12px
0.8125rem 13px
0.875rem 14px
0.9375rem 15px
1rem 16px
1.0625rem 17px
1.125rem 18px
1.1875rem 19px
1.25rem 20px
1.3125rem 21px
1.375rem 22px
1.4375rem 23px
1.5rem 24px
1.5625rem 25px
1.625rem 26px
1.6875rem 27px
1.75rem 28px
1.8125rem 29px
1.875rem 30px
1.9375rem 31px
2rem 32px
2.0625rem 33px
2.125rem 34px
2.1875rem 35px
2.25rem 36px
2.3125rem 37px
2.375rem 38px
2.4375rem 39px
2.5rem 40px
2.5625rem 41px
2.625rem 42px
2.6875rem 43px
2.75rem 44px
2.8125rem 45px
2.875rem 46px
2.9375rem 47px
3rem 48px
3.125rem 50px
3.25rem 52px
3.375rem 54px
3.5rem 56px
3.625rem 58px
3.75rem 60px
3.875rem 62px
4rem 64px
4.25rem 68px
4.5rem 72px
4.75rem 76px
5rem 80px
5.25rem 84px
5.5rem 88px
5.75rem 92px
6rem 96px
6.25rem 100px
Click any row to load that value into the converter above