Pixels to EM Converter
1.000 em
Formula: Pixels ÷ Base Size = EM
About the Pixels To Em Converter
Converts fixed pixel (px) values into relative em units for CSS, and back again, so text and spacing scale proportionally with the user's font-size preferences — the basis of responsive, accessible typography.
How to use
- Enter the pixel value you want to convert (for example, 24px).
- Set the base font size — the default is 16px, which is the standard browser default.
- Read the result instantly: em = px ÷ base font size (24px ÷ 16 = 1.5em). Reverse it with px = em × base font size.
Key features
- Adjustable base font size, so conversions stay correct if your project uses a different root size (for example, 10px with the `html { font-size: 62.5% }` pattern).
- Many converters also handle rem (relative to the root element, unlike em, which is relative to the parent element) and show a reference table of common sizes.
Frequently asked questions
What is 1em in pixels?
1em equals the font size of the parent element — at the default 16px parent, 1em = 16px.
Why use em instead of px?
Pixels are fixed and absolute; em units scale with the user's font settings, so layouts adapt better to accessibility preferences and different screens.
Do em values compound when nested?
Yes — each nested element measures em against its own parent, so nested em font sizes multiply; rem avoids this by always referring to the root.
Free to use, no signup needed. This tool runs entirely in your browser — your data never leaves your device.
