PX to REM Converter

PX to REM Converter

base value:

Value(Pixels):


Value(rem):

PX to REM Converter

A px to rem converter is a tool that converts values specified in pixels (px) to values specified in rems (rem). Pixels are a fixed unit of measurement in CSS, while rems are a relative unit of measurement based on the font-size of the root element. Using rems can help to create more scalable and responsive designs.

Introduction of REM

REM is a unit of measurement in web design that is relative to the root element (i.e., the tag) font size. It is commonly used in responsive layouts, and its value is proportional to the font size of the root element, which is typically set to 16px by default. Therefore, 1rem is equal to a multiple of the root element font size. For example, if the root element font size is 16px, then 1rem = 16px, 2rem = 32px, 3rem = 48px, and so on.

Difference Between EM and REM

In contrast, RM (Responsive EM) is a unit of measurement that is relative to the font size of the parent element, and is also commonly used in responsive layouts. Its value is proportional to the font size of the parent element, and 1rm is equal to a multiple of the parent element font size. Therefore, RM is more flexible than REM, and can be used for various element font sizes and layout dimensions.

In summary, REM and RM are both commonly used font size units in responsive web design, but REM is relative to the root element, while RM is relative to the parent element. The choice of these units depends on the specific situation, where REM is suitable for controlling the font size of the entire page, and RM is more suitable for controlling the font size and layout of individual elements or local areas.

how to use?

1.Confirm your base value.If you do not need to change, please keep the default value.

2.Enter your pixels value

3.Click the convert button to get the REM value

PX to REM Formula:

REM = PX / BASE

Conversion Table

Pixelsrem
10.0625
20.125
30.1875
40.25
50.3125
60.375
70.4375
80.5
90.5625
100.625
110.6875
120.75
130.8125
140.875
150.9375
161
171.0625
181.125
191.1875
201.25
211.3125
221.375
231.4375
241.5
251.5625
261.625
271.6875
281.75
291.8125
301.875
311.9375
322
332.0625
342.125
352.1875
362.25
372.3125
382.375
392.4375
402.5
412.5625
422.625
432.6875
442.75
452.8125
462.875
472.9375
483
493.0625
503.125

All Converters