Design tools

REM to PX Converter

REM to PX Converter

Convert rem to pixels for any root font size, including whole stylesheets.

About this tool

About REM to PX Converter

Sometimes you need to know what a rem value really measures: to match a design file, to check a component against a pixel spec, or to hand values to a tool that only understands pixels. Enter a rem value and the pixel equivalent appears instantly, based on the root font size you set (16px by default, or 10px if your project uses the 62.5% trick). It works both ways, so you can also type pixels. The reference table shows common sizes at your root size and can be downloaded as CSV. To convert a whole stylesheet, paste it and every rem value is rewritten in pixels, with comments, strings and url() paths left as they are and media query conditions untouched if you choose. Select 2 to 5 decimal places to control rounding. Switch to em when you're working with sizes relative to a parent element rather than the root. Everything is calculated in your browser.

Built and maintained by Abhi JainUpdated

How to Convert REM to PX

  1. 1

    Set the root size

    Enter the root font size in Base font size (16px by default).

  2. 2

    Convert a value

    Type a value into rem; the Pixels box updates.

  3. 3

    Convert CSS

    Paste CSS under Convert a stylesheet with rem → px selected, then copy or download it.

REM to PX Converter: questions and answers

How do I convert rem to px?

Multiply the rem value by the root font size: px = rem × base. At the default 16px, 1.5rem = 24px and 0.875rem = 14px.

Is 1rem always 16px?

Only by default. 1rem equals the html element's font size, which users can change in browser settings and sites can change with CSS. That's why rem is the accessible choice for font sizes.

What is 2rem in pixels?

32px at the default 16px root size, or 20px if the root is set to 10px.

Why convert rem back to pixels?

Mostly for comparing with design specs and screenshots, or when a tool such as an email builder or canvas library only accepts pixels. Keep rem in your CSS where you can.

More PX to REM Converter presets