PX to REM Converter

Convert pixels to REM and EM and back, with selectable base font size, to keep your typography scalable across devices and screens. GDPR-compliant.

The result will appear here …

How to use this tool (video)

This video is hosted on YouTube. When you play it, data may be sent to Google.

Convert PX to REM

The PX to REM converter turns pixels into REM and EM and back. The base font size is freely selectable, 16 pixels by default. This lets you build your stylesheets with relative units instead of fixed pixels.

What is the difference between REM and EM?

REM (Root EM) refers to the font size of the root element, usually the HTML base size. EM refers to the font size of the respective parent element. For the conversion the tool uses the base font size you set.

Why use REM instead of PX?

Relative units improve accessibility and make scaling easier. Change only the base font size and all REM values adjust automatically. That is a common reason developers convert pixels to REM.

Common values at a glance

The tool shows a table of frequent conversions, for example 16px to 1rem at a base of 16. Typical values such as 12, 14, 16, 18 or 24 pixels are easy to find without doing the math yourself.

Frequently asked questions

What is the difference between REM and EM?

REM refers to the font size of the root element, usually the HTML base size. EM refers to the font size of the respective parent element. For the conversion the tool uses the base size you set.

Which base font size is used?

By default 16 pixels is set as the base font size. You can adjust this value freely if your project uses a different base.

Why should I use REM instead of PX?

Relative units improve accessibility and make scaling easier. Change only the base font size and all REM values adjust automatically.

Which typical values does the table show?

The tool shows a table of common conversions, such as 16 pixels to 1 rem at a base of 16. Typical values like 12, 14, 16, 18 or 24 pixels are easy to find without doing the math.

Can I also convert EM?

Yes. The converter turns pixels into both relative units, REM and EM. This covers both common units with a single tool.

Are my values uploaded anywhere?

No. The conversion runs entirely in your browser. Your values are not transmitted to our server or stored.