Converters

PX to EM Converter

Convert pixels (px) to em and em to pixels instantly using a 16px base font size.

Tool

PX to EM Converter

Convert pixels (px) to em and em to pixels instantly using a 16px base font size.

This tool runs in your browser. Your input is processed locally and is not uploaded.

About this Tool

Use this free online PX to EM converter to quickly convert between pixels (px) and em units.

Conversion Formula

px → em
em = px ÷ 16
em → px
px = em × 16

Examples

  • 16 px = 1 em
  • 20 px = 1.25 em
  • 2 em = 32 px

Frequently Asked Questions

What is EM in CSS?

EM is a relative CSS unit based on the font size of the current element.

How do you convert px to em?

Divide the pixel value by the current font size, commonly 16px.

What is the difference between em and rem?

EM is relative to the current element, while REM is relative to the root element.

Related Tools