PB
Available
code
lock Free · Private · In-Browser

PX to REM Converter

Switch between pixels and rem units at any root size.

Pixels and rem, both ways

Rem units keep typography and spacing scalable and accessible, but designers usually think in pixels. This converter bridges the two at whatever root font size your project uses.

At the default 16-pixel root, 24 pixels is 1.5rem. Switch modes to go the other way, and change the base if your project sets a different root size.

Simple and private

The conversion runs in your browser, so nothing you enter is uploaded.

Frequently Asked Questions

How does it convert?

Rem equals pixels divided by the root font size, which defaults to 16 pixels. It converts both ways.

Why use rem?

Rem units scale with the user’s root font size, making layouts more accessible and easier to scale globally.

Can I change the base?

Yes. Set the root font size if your project uses something other than the 16-pixel default.

Take it further
All Free Tools

Browse the full set of free, private, in-browser tools.

Learn More arrow_forward