REM To PX Converter


An easy to use rem to px converter tool for web designers.



rem
px


px

Live Preview

Font Size = 1rem & Base Font Size = 16px

Sample

SHARE NOW


rem


px
0.5 rem to px

rem


px
1 rem to px

rem


px
1.5 rem to px

rem


px
2 rem to px

rem


px
0.75 rem to px

rem


px
1.25 rem to px

rem


px
1.75 rem to px

rem


px
2.25 rem to px

How to Use the converter?

1

Select the input field labeled "REM"

2

Change the number in an input field

3

Converter will automatically convert

What is REM?

In CSS, rem stands for "root em." It is a unit of measurement equal to the font size of the document's root element. The root element is usually the <html> element, and the font size is usually set on the <body> element.

Using rem units allows you to specify sizes in a way that is responsive to changes in the font size. For example, if you set the font size of the root element to be 16px, then 1rem would be equal to 16px. If you later change the font size of the root element to be 20px, then 1rem would automatically be updated to be equal to 20px.

The (REM) root element's font size can be set in pixels or relative to the user's default font size. If a pixel value is not specified, it will inherit from its parent elements, usually 16px by default.

What is px unit?

A pixel is the smallest unit of an image that can be displayed on a screen. In web development, pixels are used to define the size of an element on a web page.

One pixel is equal to one dot on a computer screen. The size of a pixel is not fixed, and it can vary depending on the device’s screen resolution.

Pixels are commonly used to define the size of images, fonts, and other elements on a web page. When you set the font size of an element to 16px, it means that the text will be displayed in 16 pixels on the screen.

Difference Between REM and PX

Pixels (px)

Pixels (px) are a fixed unit of measurement used in web design. They are based on the resolution of the display, meaning their size remains consistent across different devices and screen sizes. For example, an element set to 100px wide will always be 100 pixels wide, whether it’s viewed on a mobile phone or a large monitor. This makes px a great choice for elements that require precise dimensions, such as images, icons, or fixed layouts. However, since it doesn’t adapt to changes in the user’s browser settings or screen resolution, using pixels can lead to a lack of responsiveness and accessibility in some designs.

Root em (rem)

Root em (rem) is a relative unit of measurement that scales based on the font size of the root HTML element (). By default, most browsers set this root size to 16px, so 1rem typically equals 16px. What makes rem powerful is its ability to create scalable and responsive layouts. When a user changes their browser’s default font size or zoom level, elements using rem automatically adjust, ensuring better accessibility and a more flexible design. This makes rem ideal for font sizes, padding, margins, and other components that need to respond to various screen sizes and user preferences.

REM to PX Conversion Table (Base: 16px)

REM PX
1rem 16px
2rem 32px
3rem 48px
4rem 64px
5rem 80px
6rem 96px
7rem 112px
8rem 128px
9rem 144px
10rem 160px
11rem 176px
12rem 192px
13rem 208px
14rem 224px
15rem 240px
16rem 256px
17rem 272px
18rem 288px
19rem 304px
20rem 320px
21rem 336px
22rem 352px
23rem 368px
24rem 384px
25rem 400px