Px to REM converter

Copy to clipboard
<-->
Copy to clipboard
Based on the default Root value of:

About Px to REM converter Tool?

"Px to REM" tools convert pixel (px) values into REM (root em) units, which are relative to the root font size in CSS. Using REM instead of fixed pixels allows for more flexible and scalable designs, improving accessibility and responsiveness across different devices and screen sizes.

The conversion follows a simple formula where REM equals pixels divided by the root font size.

Default 16px Root Font

The default root font size is commonly set to 16 pixels (16px) in most browsers. REM units are calculated relative to this root font size, meaning 1 REM equals 16 pixels by default. So, when converting pixels to REM, you divide the pixel value by 16. For example, 32px converts to 2 REM. 

JavaScript

    React

      NextJS

        HTML

          CSS

            Sign up for our newsletter.

            Copyright © theHardCoder 2021 - 2025