Convert Pixel to Em

Unit definitions

Pixel

A pixel is a unit of length based on the $96$ DPI standard, equal to $\frac{1}{96}$ of an inch (approximately $0.000\,264\,583$ meters).

Em

An em is a unit of typography equal to the point size of the font, commonly $12$ points or $\frac{1}{6}$ of an inch.

How to convert Pixel to Em

$$\text{Length}_{\text{em}} = \frac{\text{Length}_{\text{px}}}{16}$$

Examples

Example 1

Convert $20.0\ \text{px}$ to $\text{em}$.

$$\text{Length}_{\text{em}} = \frac{20.0}{16}$$

$$\text{Length}_{\text{em}} = 1.25$$

$$\therefore \ 20.0\ \text{px} = 1.25 \ \text{em}$$

Example 2

Convert $70.0\ \text{px}$ to $\text{em}$.

$$\text{Length}_{\text{em}} = \frac{70.0}{16}$$

$$\text{Length}_{\text{em}} = 4.375$$

$$\therefore \ 70.0\ \text{px} = 4.375 \ \text{em}$$

Example 3

Convert $105.0\ \text{px}$ to $\text{em}$.

$$\text{Length}_{\text{em}} = \frac{105.0}{16}$$

$$\text{Length}_{\text{em}} = 6.5625$$

$$\therefore \ 105.0\ \text{px} = 6.5625 \ \text{em}$$

Example 4

Convert $150.0\ \text{px}$ to $\text{em}$.

$$\text{Length}_{\text{em}} = \frac{150.0}{16}$$

$$\text{Length}_{\text{em}} = 9.375$$

$$\therefore \ 150.0\ \text{px} = 9.375 \ \text{em}$$

Example 5

Convert $165.0\ \text{px}$ to $\text{em}$.

$$\text{Length}_{\text{em}} = \frac{165.0}{16}$$

$$\text{Length}_{\text{em}} = 10.3125$$

$$\therefore \ 165.0\ \text{px} = 10.3125 \ \text{em}$$

Pixel to Em conversion table

Pixel to Em conversion table
Pixel [px] Em [em]
1 0.0625
2 0.125
3 0.1875
4 0.25
5 0.3125
6 0.375
7 0.4375
8 0.5
9 0.5625
10 0.625

Convert Pixel to other Length units