Dev Tools

Pixel Converter

Convert between px, rem, and em using the browser's base font size. Update any field to see the other units adjust instantly.

Measurement
Choose a value and unit, then set the root font size (typically 16px) to update the conversions.

Most browsers default to 16px. Adjust this if the site uses a different root size.

Converted Values
Results update automatically as you type.

Pixels (px)

16 px

Root em (rem)

1 rem

Relative em (em)

1 em

With a root font size of 16px: 1rem = 16px and 1em = 16px for this calculation.