Convert Pixels to Ems
Convert pixels to ems (px to em) with our instant calculator. 1 px = 0.0625 em. Includes exact formula and reference tables.
How to Convert Pixels to Ems (px to em)
1 Pixel (px) is equal to 0.0625 Ems (em). Divide the pixel value by 16
Unit Definitions & Metrology Context
One em (em) is 16 times larger than one pixel (px), meaning 1 px represents 0.0625 of a single em.
In standard digital design and CSS specifications (W3C CSS Values Module), the reference pixel (px) is calibrated to 1/96th of an inch (96 DPI baseline).
About Pixels (px): Pixel (px) is a typography measurement unit. It is commonly used for css digital display baseline (96 dpi). The pixel (px) serves as the primary SI/reference base unit for the typography domain.
About Ems (em): Em (em) is a typography measurement unit. It is commonly used for relative font size (16 px standard). Relative to the typography reference standard, 1 em equals 16 Pixels (px).
Need to convert in the opposite direction? Visit our Convert Ems to Pixels (em to px) calculator (1 em = 16 px).
Step-by-Step Worked Examples (px to em)
- Convert 5 Pixels to Ems: Using the conversion equation (em = px / 16), take 5 px and divide the pixel value by 16, yielding 0.3125 em.
- Convert 12 Pixels to Ems: For a benchmark of 12 px, divide the pixel value by 16 (12 px → 0.75 em).
- Convert 50 Pixels to Ems: Scaling up to 50 px: applying em = px / 16 gives an exact result of 3.125 ems (em).
Popular Typography Conversions
Frequently Asked Questions
Verified answers and formulas for converting pixels to ems.
There are 0.0625 ems (em) in 1 pixel (px). Conversely, 1 em equals 16 pixels.
To convert pixels (px) to ems (em), use the formula: em = px / 16. Divide the pixel value by 16. For example, 10 px equals 0.625 em.
To convert in the reverse direction from ems (em) to pixels (px), use the inverse formula: px = em × 16. Multiply the em value by 16 (1 em = 16 px).
Both pixel and em measure typography. Pixel (px) is a typography measurement unit. It is commonly used for css digital display baseline (96 dpi). The pixel (px) serves as the primary SI/reference base unit for the typography domain. Em (em) is a typography measurement unit. It is commonly used for relative font size (16 px standard). Relative to the typography reference standard, 1 em equals 16 Pixels (px).
Divide the pixel value by 16 (assuming default root font size of 16px). For example, 16px = 1rem, 24px = 1.5rem, and 32px = 2rem.