Pixels to Em Converter
Convert px to em
Formula
em = px ÷ base font size | Default base = 16px | 1em = 16px (default) | rem = px ÷ root font size
Frequently Asked Questions
How do I convert px to em?
Divide the pixel value by the base font size. With the default browser font size of 16px: 24px ÷ 16 = 1.5em. The formula is: em = px ÷ base font size.
What is the difference between em and rem?
Em is relative to the font size of the parent element, while rem (root em) is relative to the root element's font size (usually 16px). Rem is more predictable for consistent sizing across a page.
You may also need
R
Pixels to Inches Converter
Free pixels to inches converter. Convert px to inches and inches to pixels at any DPI/PPI. Essential for print design and screen resolution.
ConversionR
HEX to RGB Color Converter
Free HEX to RGB color converter. Convert hexadecimal color codes to RGB values instantly. Includes HSL and CSS output formats.
ConversionR
Unit Converter
Free unit converter. Convert between metric and imperial units for length, weight, and temperature. Instant results, no signup required.
Conversion