px to em

A converter that calculates the em from a px for a given em size to make the measurement responsive

Pixels
EM Size

Hot Keys

C

Calculate and copy the result of calculation.

V

Calculate the result.

B

Copy the result of calculation.

R

Reverse the converter to "EM to PX".

Q

Focus the "Pixels" input.

W

Focus the "EM Size" input.

FAQ

How to convert PX to EM?

To convert px to em, you should know total size of 1 EM, default is 16px Then, just apply formula: px / em For example, with 16px size of 1em, 32px will be converted to: 32 / 16 = 2em

What is the PX to EM formula?

px / em

What is em unit?

EM is defined relative to the font size of the parent element. 1 EM therefore takes on the value which is given to the font-size of the parent element.

What is px unit? (Pixels)

Pixel unit is the theorical smallest dot displayed on a computer screen. Nowadays, pixel unit can differ between physical resolution and logical resolution. This difference is called device pixel ratio or DPR: Logical resolution = physical resolution / device pixel ratio. So, a screen with 1024x768 physical resolution with a DPR of 2 will have a 512x384 logical resolution.

PX to EM Conversion Table if em size is 16px

pxem
10px0.625em
20px1.25em
30px1.875em
40px2.5em
50px3.125em
60px3.75em
70px4.375em
80px5em
90px5.625em
100px6.25em
110px6.875em
120px7.5em
130px8.125em
140px8.75em
150px9.375em
160px10em
170px10.625em
180px11.25em
190px11.875em
200px12.5em
210px13.125em
220px13.75em
230px14.375em
240px15em
250px15.625em

More PX & EM Conversions