em to px
A converter that calculates the px from an em for a given em size to measure the pixels
Hot Keys
Calculate and copy the result of calculation.
Calculate the result.
Copy the result of calculation.
Reverse the converter to "PX to EM".
Focus the "EM" input.
Focus the "EM Size" input.
FAQ
How to convert EM to PX?
To convert em to px, you should know total size of 1 EM, default is 16px Then, just apply formula: em * em size For example, with 16px size of 1em, 2em will be converted to: 2 * 16 = 32px
What is the EM to PX formula?
em * em size
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.
EM to PX Conversion Table if em size is 16px
em | px |
---|---|
1em | 16px |
2em | 32px |
3em | 48px |
4em | 64px |
5em | 80px |
6em | 96px |
7em | 112px |
8em | 128px |
9em | 144px |
10em | 160px |
11em | 176px |
12em | 192px |
13em | 208px |
14em | 224px |
15em | 240px |
16em | 256px |
17em | 272px |
18em | 288px |
19em | 304px |
20em | 320px |
21em | 336px |
22em | 352px |
23em | 368px |
24em | 384px |
25em | 400px |