Skip to content

PX to REM Converter

Embed

Paste this where you want PX to REM Converter on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/px-to-rem-converter/" width="100%" height="500" frameborder="0" loading="lazy" title="PX to REM Converter"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/px-to-rem-converter/">PX to REM Converter</a> by BrowserUtils</p>

Convert pixel values to REM units.Runs in this tab.

PixelsREM
12px0.75rem
14px0.875rem
16px1rem
18px1.125rem
20px1.25rem
24px1.5rem
32px2rem
48px3rem
64px4rem

Next step

About PX to REM Converter

Free online PX to REM converter. Convert CSS pixel values to REM units based on a configurable root font size. It runs in your browser. Nothing is sent to a server.

Questions

What is the difference between PX and REM in CSS?
PX (pixels) is an absolute unit that stays the same size regardless of user settings, while REM is relative to the root element font size. Using REM allows your layout to scale proportionally when users change their browser font size.
How do I convert pixels to REM?
Divide the pixel value by the root font size (typically 16px). For example, 24px equals 1.5rem when the root font size is 16px. This tool handles the calculation automatically for any base size you configure.
Can I change the base font size in the PX to REM converter?
Yes, you can set the root font size to any value. The default is 16px, which matches most browser defaults, but you can adjust it to match your project settings.
Should I use REM or EM for responsive design?
REM is generally preferred because it always references the root font size, making calculations predictable. EM is relative to the parent element font size, which can cause compounding issues in nested elements.

More in CSS & Design

All 22 css & design