PX to EM Converter

A tool that converts PX to EM for a specific breakpoint, helping to measure pixels accurately.

The base font size is pixels.
Rounding precision (max 15):

PX to EM Conversion Table

This table shows common PX to EM values with a 16px base font size. Use the converter above for more conversions.

Pixels (px) EM
1px0.0625em
2px0.125em
3px0.1875em
5px0.3125em
8px0.5em
10px0.625em
12px0.75em
14px0.875em
15px0.9375em
16px1em
18px1.125em
20px1.25em
22px1.375em
24px1.5em
30px1.875em
32px2em
34px2.125em
35px2.1875em
38px2.375em
40px2.5em
42px2.625em
45px2.8125em
48px3em
50px3.125em
52px3.25em
55px3.4375em
60px3.75em
64px4em
70px4.375em
72px4.5em
75px4.6875em
78px4.875em
80px5em
82px5.125em
85px5.3125em
88px5.5em
90px5.625em
92px5.75em
95px5.9375em
100px6.25em

How to Convert PX to EM?

To convert px to em, you need to know the size of 1 em, which is typically based on the font size of the parent element. Then, simply use the formula:
px ÷ parent font size = em

For example, with 1em being 16px, 32px would convert to:
32 ÷ 16 = 2em

What is the PX to EM formula?

The formula for converting PX to EM is:
EM = PX / Parent Font Size

Typically, the parent font size is 16px, so the formula becomes:
EM = PX / 16

Why Convert PX to EM?

EM is relative to the parent element's font size, making it easier to create flexible, scalable designs that adapt to different contexts and ensure accessibility.

Why Use EM Over PX?

  • Scalability: EM is relative to the parent element's font size, meaning elements scale when the parent size changes, while PX is fixed.
  • Accessibility: EM allows users to adjust text size in their browser settings for better readability, unlike PX which stays fixed.
  • Consistency: EM ensures all elements scale uniformly based on the parent font size, making it easier to maintain consistent sizing across the site.
  • Responsiveness: EM works well with media queries, adapting layout and typography based on screen size and the parent element’s font size.
  • Maintainability: Adjusting the parent font size changes all EM-based elements within that parent, simplifying updates.