PX to REM / EM Converter

Convert between pixel, rem, and em units — set your base and convert instantly.

Base font size: px
Pixels
px
REM
rem
16px
Pixels
1rem
REM
1em
EM

The quick brown fox jumps over the lazy dog

16px / 1rem

Reference Table

PXREMEMPT

How to Use PX to REM / EM Converter

① Enter a PX value ② Set the base font size ③ View REM and EM equivalents ④ Copy the value

About PX to REM / EM Converter

PX to REM / EM Converter is a free online tool that converts between PX, REM, and EM CSS units instantly. Enter any pixel value and get the equivalent REM and EM values based on your base font size, with a complete reference table for quick lookups. Understanding CSS units is essential for responsive web design. PX (pixels) are absolute units, while REM and EM are relative units that scale with the user's font size settings. Using relative units improves accessibility and makes your layouts more flexible across different devices and user preferences. REM units are relative to the root element's font size (usually 16px by default), making them predictable and consistent across your entire stylesheet. EM units are relative to the parent element's font size, which can compound in nested elements. Knowing when to use each is key to maintainable CSS. Everything runs entirely in your browser. There are no usage limits and no account required. Common use cases include converting design mockups from pixels to relative units, building responsive typography scales, creating consistent spacing systems, migrating legacy CSS from pixels to modern relative units, and calculating media query breakpoints.

Frequently Asked Questions

What is the default base font size?
The default browser base font size is 16px, so 1rem = 16px. You can change this in the converter.
Should I use REM or EM?
Use REM for consistent sizing across your site. Use EM when you want sizing relative to the parent element.
Why use REM instead of PX?
REM respects user font size preferences, improving accessibility. PX ignores user settings.
Does this handle nested EM calculations?
The converter shows direct conversion. For nested EM, remember that EM compounds with each nesting level.
Share Aether Tool
Help us grow!