PX to REM Converter

โ† Back to DashboardDEVELOPER TOOLS

PX to REM / EM Converter

Convert pixels (px) to REM and EM units bidirectionally based on your root base font size (default 16px) with one-click copy and quick reference chart.

HTML root font-size value (default: 16px)

px
px
CSS: font-size: 32px;
rem
CSS: font-size: 2rem;
Formula: 32px รท 16px = 2rem
1rem = 16px (html { font-size: 16px; })

Common Conversion Reference Table

Click any row to load the value into the converter
Pixels (PX)REMEMCopy
8px0.5rem0.5em
10px0.625rem0.625em
12px0.75rem0.75em
14px0.875rem0.875em
16px1rem1em
18px1.125rem1.125em
20px1.25rem1.25em
24px1.5rem1.5em
28px1.75rem1.75em
32px2rem2em
36px2.25rem2.25em
40px2.5rem2.5em
48px3rem3em
56px3.5rem3.5em
64px4rem4em
72px4.5rem4.5em
80px5rem5em
96px6rem6em

How to Use the PX to REM / EM Converter

Calculate scalable typography and responsive spacing for modern CSS without manual calculations.

Seamless Two-Way Conversion

Type in pixels to get REM immediately, or edit REM to calculate pixels instantaneously as you type.

Customizable Base Font Size

Easily adjust the base root font size from 16px to 10px, 14px, or any custom value suited for your design system.

One-Click Copy & Quick Reference Table

Copy computed CSS units straight to your clipboard and explore a ready-to-use reference chart spanning 8px to 96px.

Quick Brain Break

How about a quick mini-game to clear your mind?

A refreshing collection of free classic browser games to recharge your brain during work.