Skip to content

PX to REM Converter

Convert pixels to rem and em (and back) for any root font size, with a quick reference table.

Share:

Browsers default to 16px. Change this if your html element sets a different font size.

in rem1rem
in em1em
in pixels16px

Quick Reference (base 16px)

PixelsRemEm
8px0.5rem0.5em
10px0.625rem0.625em
12px0.75rem0.75em
14px0.875rem0.875em
16px1rem1em
18px1.125rem1.125em
20px1.25rem1.25em
24px1.5rem1.5em
32px2rem2em
40px2.5rem2.5em
48px3rem3em
64px4rem4em

What Is the PX to REM Converter?

The PX to REM Converter turns pixel values into rem and em units and back again, based on your root font size (16px by default). It includes a handy reference table of common sizes for responsive, accessible CSS.

How It Works

Set your base font size, then type a pixel or rem value — the converted units update instantly and can be copied with one click.

When to Use It

Use it while writing responsive CSS, where rem units scale with user font-size preferences for better accessibility.

Frequently Asked Questions

What's the difference between rem and em?
rem is always relative to the root (html) font size; em is relative to the current element's font size. This tool assumes the root for both, which is the common case.

Last reviewed: 2026-06-27