⭐ 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.

Processed entirely in your browser — nothing you enter here is ever uploaded.

Processing... 0%

Result

About this tool

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.

Example. 32 px with a base of 16 in px-to-rem mode returns 2 rem and a CSS line font-size: 2rem.

Limit. A base font size of 0 or blank is rejected, and the reference table only lists the 14 sizes from 1 px through 64 px.