0

REM to PX Converter

Convert px to rem, rem to px and px to em at any base font size, with a copy-ready CSS line and a live reference table.

Processing... 0%

Result

This page opens the converter in the rem → px direction: type a rem value and you immediately get its pixel equivalent at the current base font size, plus a copy-ready CSS line. At the browser default base of 16px, 1.5rem is 24px and 2rem is 32px.

Going from rem back to pixels is the everyday direction when you inspect someone else's stylesheet or a computed-styles panel: the CSS says 1.25rem and the design spec talks in pixels. The formula is simply rem × base, and the base field lets you match whatever the project's root font size really is — including the 62.5% trick where 1rem means 10px.

The reference table underneath shows the common pixel sizes with their rem values at your chosen base, so you can scan the whole scale at once. Everything recalculates live in your browser as you type, and nothing is sent anywhere.